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.
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 | |||