execute_pandas_on_html_table
Run pandas queries on EnergyPlus HTML table data to analyze simulation results. Compute statistics, filter values, or aggregate data directly from tables.
Instructions
Execute pandas operations on HTML table data from an EnergyPlus model.
Retrieves an HTML table and executes pandas operations on it. The dataframe is available as 'df' in your query.
Args: id: The model_id of the EnergyPlus model (obtain from get_available_models). query_tuple: A tuple containing (zone/component, report_name, table_name) to identify the table. query: Pandas query to execute (e.g., "df.describe()", "df.sum()")
Returns: String representation of the query result with formatted output.
Examples: # Get summary statistics execute_pandas_on_html_table(model_id, query_tuple, "df.describe()")
# Find maximum values
execute_pandas_on_html_table(model_id, query_tuple, "df.max()")
# Filter data
execute_pandas_on_html_table(model_id, query_tuple, "df[df > 1000]")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| query | Yes | ||
| query_tuple | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |