remove_columns
Remove specified columns from a dataframe to clean data, reduce dataset size, or eliminate unnecessary variables for analysis.
Instructions
Remove columns from the dataframe.
Returns: ColumnOperationResult with removal details
Examples: # Remove single column remove_columns(ctx, ["temp_column"])
# Remove multiple columns
remove_columns(ctx, ["col1", "col2", "col3"])
# Clean up after analysis
remove_columns(ctx, ["_temp", "_backup", "old_value"])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | Yes | List of column names to remove from the dataframe |
Input Schema (JSON Schema)
{
"properties": {
"columns": {
"description": "List of column names to remove from the dataframe",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"columns"
],
"type": "object"
}