Raghadmoha/data-analysis-agent
0
Welcome to Streamlit!
Edit /src/streamlit_app.py to customize this app to your heart's desire. :heart:
If you have any questions, checkout our documentation and community forums.
Data Analysis Agent
Minimal, safe Data Analysis Agent that:
- Accepts CSV files via Streamlit
- Generates a Python analysis script from a template
- Validates the script using AST checks
- Runs it in a subprocess and collects outputs (summary CSV, JSON, images)
- Presents outputs and allows downloads
Quick start (local)
- Create & activate a Python venv.
- Install requirements:
Questions to ask:
- Do students with high academic pressure have lower CGPA than those with low academic pressure?
- Is there a correlation between Work/Study Hours and CGPA?
- Which factor has the strongest correlation with Depression?
- What is the average CGPA for each level of Study Satisfaction?
- Do students with high Financial Stress work/study more hours on average?
- Which group has higher Job Satisfaction: those with high or low Work Pressure?
- What percentage of students with high Academic Pressure have reported Depression?
Simple explanation:
- User asks a question (ex: “Does high academic pressure increase depression?”)
- Analyzer.py
Reads the question
Decides what calculation to do
Generates Python code (as a string)
- Executor.py
Takes that generated code
Runs it safely
Returns the result
- Reporter.py
Turns the result into plain English
- app.py
Collect inputs.
Pass them to the agent (planner → executor → reporter).
Display the results.
Keep a memory of everything that’s been done.
