DataFrame.agg(aggs, axis=None)#

Aggregate using one or more operations over the specified axis.

aggsIterable (set, list, string, tuple or dict)
Function to use for aggregating data. Accepted types are:
  • string name, e.g. "sum"

  • list of functions, e.g. ["sum", "min", "max"]

  • dict of axis labels specified operations per column, e.g. {"a": "sum"}

axisnot yet supported
Aggregation ResultSeries or DataFrame

When DataFrame.agg is called with single agg, Series is returned. When DataFrame.agg is called with several aggs, DataFrame is returned.


Difference from pandas:
  • Not supporting: axis, *args, **kwargs