rename_columns
Rename columns using an old-to-new mapping to standardize names early in data pipelines, preventing reference errors and ensuring consistent snake_case labels.
Instructions
Rename columns using an old->new mapping. Standardize column names early in the pipeline (snake_case, no spaces, explicit names). Prevents reference errors throughout the pipeline. Example: rename_columns(mapping={"old_name": "new_name"})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| df_name | No | ||
| mapping | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |