如何在熊猫中使用分组方式

时间:2018-06-27 02:03:40

标签: python pandas group-by pandas-groupby

type = DataFrame 

size = (10600, 10)

----------

by_ncm = ncm18.groupby('codigo')

count_by_ncm = by_ncm['descricao'].count

print(count_by_ncm)

输出为

bound method SeriesGroupBy.count of pandas.core.groupby.SeriesGroupBy object at 0x10ddd9278
---------
I can't see the result... the print command don't work 

0 个答案:

没有答案