select_columns
Extract specific columns from a dataframe while removing all others. Validates column existence and reorders columns based on selection order, providing before/after column counts.
Instructions
Select specific columns from dataframe, removing all others.
Validates column existence and reorders by selection order. Returns selection details with before/after column counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | Yes | List of column names to select and keep |
Input Schema (JSON Schema)
{
"properties": {
"columns": {
"description": "List of column names to select and keep",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"columns"
],
"type": "object"
}