group_aggregate_multi
Aggregate data by multiple columns with multiple aggregation functions in one call, saving time and resources.
Instructions
GroupBy with multiple columns and multiple aggregation functions in one call. Much more efficient than calling group_aggregate repeatedly. Functions: mean, sum, count, min, max, median, std. Example: group_aggregate_multi(group_by=["CargoType"], aggregations={"Revenue": ["mean","sum","count"], "Weight": ["mean","median"]})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| df_name | No | ||
| group_by | Yes | ||
| aggregations | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |