run_python_analysis
Execute Python code for financial analysis, quantitative backtesting, or generating charts. Runs in a sandboxed environment with pandas, numpy, and matplotlib support.
Instructions
Execute dynamic Python code for financial analysis, quantitative backtesting, calculations, or generating charts/plots. The code will be executed in a dedicated 'analysis' folder inside the project. Standard libraries like pandas, numpy, and matplotlib are fully supported. Any files generated (such as PNG charts or CSV files) will be saved in the 'analysis' folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The Python code to execute. Can write files (e.g. plt.savefig("plot.png")) in the current working directory. |