query_dataframe
Filter and extract specific data from pandas dataframes using query strings to analyze datasets and answer data questions.
Instructions
Run a pandas query on a dataframe and return results.
This is a convenience method for simple queries. For complex analysis, use execute_code() instead.
Args: name: Name of the dataframe to query query: Pandas query string (e.g., "column > 100" or "city == 'Delhi'")
Returns: Filtered dataframe results.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| query | Yes |