CoolFace
Apppublic

Raghadmoha/data-analysis-agent

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
App README

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)

  1. 1.Create & activate a Python venv.
  2. 2.Install requirements:

Questions to ask:

  1. 1.Do students with high academic pressure have lower CGPA than those with low academic pressure?
  1. 1.Is there a correlation between Work/Study Hours and CGPA?
  1. 1.Which factor has the strongest correlation with Depression?
  1. 1.What is the average CGPA for each level of Study Satisfaction?
  1. 1.Do students with high Financial Stress work/study more hours on average?
  1. 1.Which group has higher Job Satisfaction: those with high or low Work Pressure?
  1. 1.What percentage of students with high Academic Pressure have reported Depression?

Simple explanation:

  1. 1.User asks a question (ex: “Does high academic pressure increase depression?”)
  1. 1.Analyzer.py

Reads the question

Decides what calculation to do

Generates Python code (as a string)

  1. 1.Executor.py

Takes that generated code

Runs it safely

Returns the result

  1. 1.Reporter.py

Turns the result into plain English

  1. 1.app.py

Collect inputs.

Pass them to the agent (planner → executor → reporter).

Display the results.

Keep a memory of everything that’s been done.