DataFrame.pivot_table
作者:互联网
函数定义
DataFrame.pivot_table(values=None, index=None, columns=None,aggfunc='mean', fill_value=None, margins=False, dropna=True, margins_name='All', observed=False, sort=True)
Create a spreadsheet(电子表格)-style pivot table as a DataFrame.
The levels in the pivot table will be stored in MultiIndex objects (hierarchical indexes) on the index and columns of the result DataFrame.
标签:index,None,DataFrame,table,pivot,margins 来源: https://www.cnblogs.com/zjuhaohaoxuexi/p/15709123.html