代码段
txt_flying
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
输出出现次数最多的组合,将其作为字典,多数投票
def get_centers_label(cluster_lables,textList): from collections import Counter cluster_lables = list(cluster_lables) combin = [] for i in range(len(cluster_lables)): combin.ap...原创 2019-05-31 16:55:34 · 256 阅读 · 0 评论 -
python 去掉只出现一次的类别
fileName = file_name csvfile = open(fileName , 'rb') # 打开csv文件 reader = pd.read_csv(csvfile) # 读取文件内容 # print(reader['label'].value_counts()) aps = reader['label'].value_counts() ...原创 2019-06-07 00:34:33 · 444 阅读 · 0 评论
分享