How shanksoff/data-analysis-streamlit-app works
Ask Your CSV is a Streamlit prototype for analyzing uploaded CSV data through natural-language questions. The main workflow loads a file into a pandas dataframe, builds a data-aware prompt, sends conversation history to Gemini, and can execute returned Python code to produce analysis or plots shown in the chat. The app also exposes export options and contains HTML report-generation logic. The implementation is concentrated in app1.py; omitted source sections limit certainty about some UI wiring and export behavior.
Main entry points: app1.py Chat Results
Components 9
User Interaction
- Streamlit Interface
app1.py - Chat Results
app1.py
Analysis Runtime
- CSV Loader
app1.py - Dataset State
app1.py - Prompt Builder
app1.py - Gemini API
- Python Executor
app1.py
Reporting
- Report Export
app1.py
Other components
- Analyst
Connections 11
- Analyst → Streamlit Interface: uploads and asks
README.md - Streamlit Interface → CSV Loader: reads CSV
app1.py - CSV Loader → Dataset State: stores dataframe
app1.py - Streamlit Interface → Prompt Builder: submits question
app1.py - Dataset State → Prompt Builder: supplies dataset
app1.py - Prompt Builder → Gemini API: requests analysis
app1.py - Gemini API → Python Executor: returns Python
app1.py - Python Executor → Chat Results: produces plots
app1.py - Gemini API → Chat Results: returns answer
app1.py - Chat Results → Analyst: displays results
app1.py - Chat Results → Report Export: uses conversation
app1.py