filter_rows
Filter rows by a column condition using operators: ==, !=, >, <, >=, <=, contains, isin. Subset data or remove invalid rows.
Instructions
Filter rows by condition. Operators: ==, !=, >, <, >=, <=, contains, isin. For isin: provide comma-separated values. Value is auto-cast for numeric columns. Use to subset data or remove invalid rows. WARNING: modifies in-place. Use copy_dataframe first if you need the full dataset later. Example: filter_rows(column="Revenue", operator=">", value="1000") Example: filter_rows(column="CargoType", operator="isin", value="GCR,SCR")
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": {
"column": "<column>",
"operator": "<operator>",
"value": "<value>"
},
"name": "filter_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| column | Yes | ||
| df_name | No | ||
| operator | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |