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"]})
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"group_by": "<group_by>",
"aggregations": "<aggregations>"
},
"name": "group_aggregate_multi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| df_name | No | ||
| group_by | Yes | ||
| aggregations | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |