csv_group_by
Group CSV data by a specified column and calculate aggregate statistics like sum, average, or count on another column to analyze patterns and trends.
Instructions
Group rows by a column and compute an aggregate on another column
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": {
"file_path": "<file_path>",
"group_column": "<group_column>",
"agg_column": "<agg_column>",
"operation": "<operation>"
},
"name": "csv_group_by"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the CSV file | |
| group_column | Yes | Column to group by | |
| agg_column | Yes | Numeric column to aggregate | |
| operation | Yes | Aggregation function |