drop_columns
Remove unnecessary or problematic columns from a dataframe to clean data and prevent analysis errors.
Instructions
Drop specified columns from the dataframe. Remove useless columns (constants, IDs, leaked features). Always understand a column before dropping it. Example: drop_columns(columns=["col1","col2"])
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": {
"columns": "<columns>"
},
"name": "drop_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | Yes | ||
| df_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |