Aggregate using one or more operations over the specified axis.
Parameters:
func : function, string, dictionary, or list of string/functions
Function to use for aggregating the data. If a function, must either work when passed a DataFrame or when passed to DataFrame.apply. For a DataFrame, can pass a dict, if the keys are DataFrame column names.
Accepted combinations are:
string function name.
function.
list of functions.
dict of column names -> functions (or list of functions).
*args
Positional arguments to pass to func.--》为func服务的,单独没意义
**kwargs
Keyword arguments to pass to func.---》为func服务的,单独没意义