from collections import Counter
a = np.where(np_subdf[:,2]==np_subdf_ori[:,2], 'same', 'different')
Counter(a)
Out[19]: Counter({'same': 3600})
python判断array中相同元素的个数,并以字典的形式返回
最新推荐文章于 2024-08-10 23:14:03 发布
关键词由CSDN通过智能技术生成