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"})
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": {
"mapping": "<mapping>"
},
"name": "rename_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| df_name | No | ||
| mapping | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |