origin_pivot_worksheet
Reshape long data into a wide pivot table. Specify index columns to stay as rows, columns to become new headers, and aggregate values using functions like mean, sum, count, min, max, median, or std.
Instructions
Reshape long data into a wide pivot table.
index columns stay as rows, the distinct values of columns become new column headers, and values are aggregated with aggfunc (mean, sum, count, min, max, median, std). Provide output_book/output_sheet to write to a new sheet instead of in place.
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": {
"index": "<index>",
"columns": "<columns>"
},
"name": "origin_pivot_worksheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| columns | Yes | ||
| values | No | ||
| aggfunc | No | mean | |
| book_name | No | ||
| sheet_name | No | ||
| output_book | No | ||
| output_sheet | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||