bach.DataFrame.rollup
rollup
(by)Group by and roll up over the column(s) by
, replacing any current grouping.
Parameters
by
(Optional[Union[str, Series, List[Union[str, Series]]]]) – the series to group by and roll up. Can be a column or index name str, a Series or a list
of any of those. If Series are passed, they should have the same base node as the DataFrame.
Returns
a new DataFrame object with the group_by
attribute set.