Compute total amounts at different group levels, producing multiple subtotals. With the 'with_rollup' clause following 'group_by', you can aggregate multiple grouping variables in one operation. This reflects the 'WITH ROLLUP' operations in 'SQL'.
Usage
with_rollup(grouped_df)
Value
A list of 'grouped_df' class. each 'grouped_df' object has a different grouping level.