meerkat.groupby¶

groupby(data: meerkat.dataframe.DataFrame, by: Union[str, Sequence[str]] = None) meerkat.ops.sliceby.groupby.GroupBy[source]¶

Perform a groupby operation on a DataFrame or Column (similar to a DataFrame.groupby and Series.groupby operations in Pandas).j.

Parameters
  • data (Union[DataFrame, AbstractColumn]) – The data to group.

  • by (Union[str, Sequence[str]]) – The column(s) to group by. Ignored if data is a Column.

Returns

A GroupBy object.

Return type

Union[DataFrameGroupBy, AbstractColumnGroupBy]