DataFrameGroupBy.agg()
pandas.core.groupby.DataFrameGroupBy.agg
-
DataFrameGroupBy.agg(arg, *args, **kwargs)
-
Aggregate using input function or dict of {column -> function}
Parameters: arg : function or dict
Function to use for aggregating groups. If a function, must either work when passed a DataFrame or when passed to DataFrame.apply. If passed a dict, the keys must be DataFrame column names.
- Accepted Combinations are:
-
- string cythonized function name
- function
- list of functions
- dict of columns -> functions
- nes