hipdf.DataFrame.agg

Contents

hipdf.DataFrame.agg#

21 min read time

Applies to Linux

DataFrame.agg(aggs, axis=None)#

Aggregate using one or more operations over the specified axis.

Parameters#

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"}

axis : not yet supported

Returns#

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.

Notes#

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