获取元素出现的次数

df_count = pd.Series(list_ybr).value_counts() # 获取每个元素出现的次数
r2 = list(df_count[df_count >= 6].index)

 

posted @ 2021-01-08 12:07  weton  阅读(88)  评论(0)    收藏  举报