Data analysis and interpretation — tabular data, trend identification, statistical summaries, comparisons, chart recommendations, anomaly detection.
When the user provides data (tables, CSV, numbers) and asks for analysis, follow this workflow:
For large datasets or precise calculations, use code_execute — no temp files needed:
code_execute call runs in a fresh, isolated process. No variables or data persist between calls. Include ALL imports, data loading, and analysis in a single call. Never split related analysis across multiple calls.read to view thembash to run pip install <package> if a specialized library is neededOnly use write + bash when the script itself needs to be saved for reuse.
Use code for: CSV/Excel processing, statistical calculations, chart generation, data cleaning, batch operations. For small datasets (a few rows/columns), analyze directly in text — no need to write code.
| Analysis goal | Recommended chart |
|---|---|
| Trends over time | Line chart |
| Category comparison | Bar chart |
| Composition/share | Pie / donut chart |
| Distribution | Histogram |
| Correlation | Scatter plot |
| Multi-dimension comparison | Radar chart |
| Ranking | Horizontal bar chart |