dataframegroupby专题

Pandas报错AttributeError: Cannot access callable attribute 'sort_values' of 'DataFrameGroupBy' objects

完整报错如下: AttributeError: Cannot access callable attribute 'sort_values' of 'DataFrameGroupBy' objects, try using the 'apply' method 报错代码如下: import pandas as pddata = pf.read_csv('test.csv',header =