Skip to main content
Glama

rename_columns

Change column names in dataframes using a dictionary mapping from old to new names for better data organization and clarity.

Instructions

Rename columns in the dataframe.

Returns: Dict with rename details

Examples: # Using dictionary mapping rename_columns(ctx, {"old_col1": "new_col1", "old_col2": "new_col2"})

# Rename multiple columns rename_columns(ctx, { "FirstName": "first_name", "LastName": "last_name", "EmailAddress": "email" })

Input Schema

NameRequiredDescriptionDefault
mappingYesDictionary mapping old column names to new names

Input Schema (JSON Schema)

{ "properties": { "mapping": { "additionalProperties": { "type": "string" }, "description": "Dictionary mapping old column names to new names", "type": "object" } }, "required": [ "mapping" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonpspri/databeak'

If you have feedback or need assistance with the MCP directory API, please join our Discord server