dataframe_groupby_aggregate
Group rows in a CSV by a specified column and compute aggregate statistics (mean, sum, min, max, count, median, or standard deviation) on a numeric column.
Instructions
按某列分组并对某个数值列做聚合。
参数: csv_text: 包含表头行的原始 CSV 内容。 group_by: 用于分组的列名。 value_column: 需要聚合的数值列。 agg: 'mean'、'sum'、'min'、'max'、'count'、'median'、'std' 之一。
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": {
"csv_text": "<csv_text>",
"group_by": "<group_by>",
"value_column": "<value_column>"
},
"name": "dataframe_groupby_aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agg | No | mean | |
| csv_text | Yes | ||
| group_by | Yes | ||
| value_column | Yes |