execute_code
Execute Python code to analyze data, perform calculations, and create visualizations using pandas, numpy, and matplotlib within the VayuChat MCP environment.
Instructions
Execute Python code for data analysis.
The code has access to:
All loaded dataframes by their names (e.g., 'air_quality', 'sales_data')
pandas as 'pd'
numpy as 'np'
matplotlib.pyplot as 'plt'
For visualizations, use plt.savefig() or the code will automatically capture any open figures as base64 PNG images.
Args: code: Python code to execute
Returns: Output from the code execution, including any print statements and base64-encoded images for any generated plots.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |