pivot_table
Summarize data with pivot tables and reshape from long to wide format for reporting.
Instructions
Create a pivot table. Stores result as a new dataframe. Creates summary tables. Use for reporting or reshaping data from long to wide format. Example: pivot_table(index=["City"], columns="Category", values="Revenue", agg_func="mean")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| values | Yes | ||
| columns | Yes | ||
| df_name | No | ||
| agg_func | No | mean | |
| result_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |