# hansika1112/econocausal-team22 architecture

> Architecture diagram of the GitHub repository hansika1112/econocausal-team22, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hansika1112/econocausal-team22
- Repository: https://github.com/hansika1112/econocausal-team22

## Overview

EconoCausal is currently a retail-data inspection and EDA workspace, not an implemented dynamic-pricing or Double Machine Learning system. Its main workflows are a batch Online Retail II analysis and an interactive dashboard for uploaded tabular data. The README documents the batch stages and dashboard capabilities; sampled source confirms the main modules and their responsibilities. Causal-question definition, modeling, and evaluation remain planned, so they are not represented as implemented components.

Main entry points: [`src/data/retail_eda_app.py`](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py) (Streamlit Dashboard), [`src/data/retail_eda.py`](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py) (Batch EDA Workflow), [`src/data/eda_insights.py`](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/eda_insights.py) (Automated Insights)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_batch["Batch Retail EDA"]
  node_batch_workflow["Batch EDA Workflow<br/>[retail_eda.py]"]
  node_input_inspection["Input Inspection<br/>[retail_eda.py]"]
  node_retail_normalization["Normalize and Sample<br/>[retail_eda.py]"]
  node_batch_outputs["EDA Tables and Figures<br/>[retail_eda.py]"]
  node_batch_report["Generated EDA Report<br/>[retail_eda.py]"]
end

subgraph group_dashboard["Interactive Dashboard"]
  node_dashboard_app["Streamlit Dashboard<br/>[retail_eda_app.py]"]
  node_upload_reading["Upload Reading<br/>[retail_eda_app.py]"]
  node_dashboard_preprocessing["Preprocessing<br/>[retail_eda_app.py]"]
  node_dashboard_eda["Filtered EDA<br/>[retail_eda_app.py]"]
  node_cleaned_export["Cleaned CSV Export<br/>[retail_eda_app.py]"]
end

subgraph group_insights["Descriptive Insights"]
  node_automated_insights["Automated Insights<br/>[eda_insights.py]"]
end

node_analyst(("Analyst"))
node_dataset["Retail Dataset"]
node_tabular_upload["Tabular Upload"]

node_analyst -->|"runs on"| node_batch_workflow
node_dataset -->|"supplies input"| node_batch_workflow
node_batch_workflow -->|"inspects source"| node_input_inspection
node_input_inspection -->|"precedes normalization"| node_retail_normalization
node_retail_normalization -->|"produces analysis"| node_batch_outputs
node_batch_outputs -->|"summarized in"| node_batch_report
node_analyst -->|"opens dashboard"| node_dashboard_app
node_tabular_upload -->|"provides file"| node_upload_reading
node_dashboard_app -->|"reads upload"| node_upload_reading
node_upload_reading -->|"provides data"| node_dashboard_preprocessing
node_dashboard_preprocessing -->|"feeds charts"| node_dashboard_eda
node_dashboard_preprocessing -->|"exports result"| node_cleaned_export
node_dashboard_eda -->|"summarizes data"| node_automated_insights
node_dashboard_app -->|"uses insights"| node_automated_insights
node_dashboard_app -->|"uses retail audit"| node_retail_normalization

click node_batch_workflow "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py"
click node_input_inspection "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py"
click node_retail_normalization "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py"
click node_batch_outputs "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py"
click node_batch_report "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py"
click node_dashboard_app "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py"
click node_upload_reading "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py"
click node_dashboard_preprocessing "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py"
click node_dashboard_eda "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py"
click node_cleaned_export "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py"
click node_automated_insights "https://github.com/hansika1112/econocausal-team22/blob/main/src/data/eda_insights.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_batch_workflow,node_input_inspection,node_retail_normalization,node_batch_outputs,node_batch_report toneBlue
class node_dashboard_app,node_upload_reading,node_dashboard_preprocessing,node_dashboard_eda,node_cleaned_export toneAmber
class node_automated_insights toneMint
class node_analyst,node_dataset,node_tabular_upload toneIndigo
```

## Components

### Batch Retail EDA

- [Batch EDA Workflow](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py): `src/data/retail_eda.py`
- [Input Inspection](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py): `src/data/retail_eda.py`
- [Normalize and Sample](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py): `src/data/retail_eda.py`
- [EDA Tables and Figures](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py): `src/data/retail_eda.py`
- [Generated EDA Report](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda.py): `src/data/retail_eda.py`

### Interactive Dashboard

- [Streamlit Dashboard](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py): `src/data/retail_eda_app.py`
- [Upload Reading](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py): `src/data/retail_eda_app.py`
- [Preprocessing](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py): `src/data/retail_eda_app.py`
- [Filtered EDA](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py): `src/data/retail_eda_app.py`
- [Cleaned CSV Export](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/retail_eda_app.py): `src/data/retail_eda_app.py`

### Descriptive Insights

- [Automated Insights](https://github.com/hansika1112/econocausal-team22/blob/main/src/data/eda_insights.py): `src/data/eda_insights.py`

### Other components

- **Analyst**
- **Retail Dataset**
- **Tabular Upload**

## Connections

- Analyst → Batch EDA Workflow: runs on (evidence: `README.md`)
- Retail Dataset → Batch EDA Workflow: supplies input (evidence: `README.md`)
- Batch EDA Workflow → Input Inspection: inspects source (evidence: `README.md`)
- Input Inspection → Normalize and Sample: precedes normalization (evidence: `README.md`)
- Normalize and Sample → EDA Tables and Figures: produces analysis (evidence: `README.md`)
- EDA Tables and Figures → Generated EDA Report: summarized in (evidence: `README.md`)
- Analyst → Streamlit Dashboard: opens dashboard (evidence: `README.md`)
- Tabular Upload → Upload Reading: provides file (evidence: `README.md`)
- Streamlit Dashboard → Upload Reading: reads upload (evidence: `src/data/retail_eda_app.py`)
- Upload Reading → Preprocessing: provides data (evidence: `README.md`)
- Preprocessing → Filtered EDA: feeds charts (evidence: `README.md`)
- Preprocessing → Cleaned CSV Export: exports result (evidence: `README.md`)
- Filtered EDA → Automated Insights: summarizes data (evidence: `README.md`)
- Streamlit Dashboard → Automated Insights: uses insights (evidence: `src/data/retail_eda_app.py`)
- Streamlit Dashboard → Normalize and Sample: uses retail audit (evidence: `README.md`)
