# sunilkumarmano/data-analysts-projects-101 architecture

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

- Interactive diagram: https://gitdiagram.com/sunilkumarmano/data-analysts-projects-101
- Repository: https://github.com/sunilkumarmano/data-analysts-projects-101

## Overview

This repository is a set of five end-to-end data-analysis teaching projects, not one integrated application. In each, a learner explores a Kaggle dataset through named DuckDB SQL queries, a shared Python query layer, and both an executed notebook and a Streamlit dashboard. The projects cover restaurant, product-pricing, supply-chain, FIFA-player, and e-commerce analysis; FIFA adds player clustering, while Olist adds a persisted multi-table DuckDB load. Edges are grounded in the README and shown app/database excerpts; notebook and unsampled project capabilities are included only where documented.

Main entry points: [`05-olist-ecommerce-dashboard/db.py`](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/db.py) (DuckDB query layer), [`01-zomato-restaurant-analysis/db.py`](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/db.py) (DuckDB query layer), [`02-flipkart-price-analysis/db.py`](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/db.py) (DuckDB query layer), [`03-supply-chain-analysis/db.py`](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/db.py) (DuckDB query layer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_zomato["Restaurant Analysis"]
  node_z_download["Dataset download<br/>[download_data.py]"]
  node_z_data[("Restaurant dataset")]
  node_z_sql["Restaurant queries<br/>[queries.sql]"]
  node_z_db["DuckDB query layer<br/>[db.py]"]
  node_z_notebook["Analysis notebook<br/>[analysis.ipynb]"]
  node_z_app["Restaurant dashboard<br/>[app.py]"]
end

subgraph group_flipkart["Pricing Analysis"]
  node_f_download["Dataset download<br/>[download_data.py]"]
  node_f_data[("Product listings")]
  node_f_sql["Pricing queries<br/>[queries.sql]"]
  node_f_db["DuckDB query layer<br/>[db.py]"]
  node_f_notebook["Analysis notebook<br/>[analysis.ipynb]"]
  node_f_app["Pricing dashboard<br/>[app.py]"]
end

subgraph group_supply["Supply Chain"]
  node_s_download["Dataset download<br/>[download_data.py]"]
  node_s_data[("Supply-chain dataset")]
  node_s_sql["Operations queries<br/>[queries.sql]"]
  node_s_db["DuckDB query layer<br/>[db.py]"]
  node_s_notebook["Analysis notebook<br/>[analysis.ipynb]"]
  node_s_app["Operations dashboard<br/>[app.py]"]
end

subgraph group_fifa["Player Scouting"]
  node_p_download["Dataset download<br/>[download_data.py]"]
  node_p_data[("Player dataset")]
  node_p_sql["Scouting queries<br/>[queries.sql]"]
  node_p_db["DuckDB query layer<br/>[db.py]"]
  node_p_notebook["Analysis notebook<br/>[analysis.ipynb]"]
  node_p_app["Scouting dashboard<br/>[app.py]"]
  node_p_cluster["Player clustering<br/>[app.py]"]
end

subgraph group_olist["E-Commerce"]
  node_o_download["Dataset download<br/>[download_data.py]"]
  node_o_raw[("Olist CSV tables")]
  node_o_load["DuckDB table loader<br/>[load_to_duckdb.py]"]
  node_o_store[("Olist DuckDB")]
  node_o_sql["E-commerce queries<br/>[queries.sql]"]
  node_o_db["DuckDB query layer<br/>[db.py]"]
  node_o_notebook["Analysis notebook<br/>[analysis.ipynb]"]
end

node_learner(("Learner"))
node_kaggle[("Kaggle datasets")]

node_learner -->|"runs download"| node_z_download
node_kaggle -->|"provides dataset"| node_z_download
node_z_download -.->|"downloads"| node_z_data
node_z_data -->|"loads data"| node_z_db
node_z_db -->|"parses queries"| node_z_sql
node_z_app -->|"runs queries"| node_z_db
node_z_notebook -->|"runs queries"| node_z_db
node_z_app -->|"presents dashboard"| node_learner
node_z_notebook -->|"explains findings"| node_learner
node_learner -->|"runs download"| node_f_download
node_kaggle -->|"provides dataset"| node_f_download
node_f_download -.->|"downloads"| node_f_data
node_f_data -->|"loads data"| node_f_db
node_f_db -->|"parses queries"| node_f_sql
node_f_app -->|"runs queries"| node_f_db
node_f_notebook -->|"runs queries"| node_f_db
node_f_app -->|"presents dashboard"| node_learner
node_f_notebook -->|"explains findings"| node_learner
node_learner -->|"runs download"| node_s_download
node_kaggle -->|"provides dataset"| node_s_download
node_s_download -.->|"downloads"| node_s_data
node_s_data -->|"loads data"| node_s_db
node_s_db -->|"parses queries"| node_s_sql
node_s_app -->|"runs queries"| node_s_db
node_s_notebook -->|"runs queries"| node_s_db
node_s_app -->|"presents dashboard"| node_learner
node_s_notebook -->|"explains findings"| node_learner
node_learner -->|"runs download"| node_p_download
node_kaggle -->|"provides dataset"| node_p_download
node_p_download -.->|"downloads"| node_p_data
node_p_data -->|"loads data"| node_p_db
node_p_db -->|"parses queries"| node_p_sql
node_p_app -->|"runs queries"| node_p_db
node_p_notebook -->|"runs queries"| node_p_db
node_p_app -->|"computes archetypes"| node_p_cluster
node_p_app -->|"presents dashboard"| node_learner
node_p_notebook -->|"explains findings"| node_learner
node_learner -->|"runs download"| node_o_download
node_kaggle -->|"provides dataset"| node_o_download
node_o_download -.->|"downloads"| node_o_raw
node_o_raw -->|"loads CSVs"| node_o_load
node_o_load -->|"builds database"| node_o_store
node_o_store -->|"opens read-only"| node_o_db
node_o_db -->|"parses queries"| node_o_sql
node_o_notebook -->|"runs queries"| node_o_db
node_o_db -->|"returns results"| node_learner

click node_z_download "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/download_data.py"
click node_z_sql "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/queries.sql"
click node_z_db "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/db.py"
click node_z_notebook "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/analysis.ipynb"
click node_z_app "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/app.py"
click node_f_download "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/download_data.py"
click node_f_sql "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/queries.sql"
click node_f_db "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/db.py"
click node_f_notebook "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/analysis.ipynb"
click node_f_app "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/app.py"
click node_s_download "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/download_data.py"
click node_s_sql "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/queries.sql"
click node_s_db "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/db.py"
click node_s_notebook "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/analysis.ipynb"
click node_s_app "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/app.py"
click node_p_download "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/download_data.py"
click node_p_sql "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/queries.sql"
click node_p_db "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/db.py"
click node_p_notebook "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/analysis.ipynb"
click node_p_app "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/app.py"
click node_p_cluster "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/app.py"
click node_o_download "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/download_data.py"
click node_o_load "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/load_to_duckdb.py"
click node_o_sql "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/queries.sql"
click node_o_db "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/db.py"
click node_o_notebook "https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/analysis.ipynb"

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_z_download,node_z_data,node_z_sql,node_z_db,node_z_notebook,node_z_app toneBlue
class node_f_download,node_f_data,node_f_sql,node_f_db,node_f_notebook,node_f_app,node_kaggle toneAmber
class node_s_download,node_s_data,node_s_sql,node_s_db,node_s_notebook,node_s_app toneMint
class node_p_download,node_p_data,node_p_sql,node_p_db,node_p_notebook,node_p_app,node_p_cluster toneRose
class node_o_download,node_o_raw,node_o_load,node_o_store,node_o_sql,node_o_db,node_o_notebook,node_learner toneIndigo
```

## Components

### Restaurant Analysis

- [Dataset download](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/download_data.py): `01-zomato-restaurant-analysis/download_data.py`
- **Restaurant dataset**
- [Restaurant queries](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/queries.sql): `01-zomato-restaurant-analysis/queries.sql`
- [DuckDB query layer](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/db.py): `01-zomato-restaurant-analysis/db.py`
- [Analysis notebook](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/analysis.ipynb): `01-zomato-restaurant-analysis/analysis.ipynb`
- [Restaurant dashboard](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/01-zomato-restaurant-analysis/app.py): `01-zomato-restaurant-analysis/app.py`

### Pricing Analysis

- [Dataset download](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/download_data.py): `02-flipkart-price-analysis/download_data.py`
- **Product listings**
- [Pricing queries](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/queries.sql): `02-flipkart-price-analysis/queries.sql`
- [DuckDB query layer](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/db.py): `02-flipkart-price-analysis/db.py`
- [Analysis notebook](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/analysis.ipynb): `02-flipkart-price-analysis/analysis.ipynb`
- [Pricing dashboard](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/02-flipkart-price-analysis/app.py): `02-flipkart-price-analysis/app.py`

### Supply Chain

- [Dataset download](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/download_data.py): `03-supply-chain-analysis/download_data.py`
- **Supply-chain dataset**
- [Operations queries](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/queries.sql): `03-supply-chain-analysis/queries.sql`
- [DuckDB query layer](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/db.py): `03-supply-chain-analysis/db.py`
- [Analysis notebook](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/analysis.ipynb): `03-supply-chain-analysis/analysis.ipynb`
- [Operations dashboard](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/03-supply-chain-analysis/app.py): `03-supply-chain-analysis/app.py`

### Player Scouting

- [Dataset download](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/download_data.py): `04-fifa-player-analysis/download_data.py`
- **Player dataset**
- [Scouting queries](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/queries.sql): `04-fifa-player-analysis/queries.sql`
- [DuckDB query layer](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/db.py): `04-fifa-player-analysis/db.py`
- [Analysis notebook](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/analysis.ipynb): `04-fifa-player-analysis/analysis.ipynb`
- [Scouting dashboard](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/app.py): `04-fifa-player-analysis/app.py`
- [Player clustering](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/04-fifa-player-analysis/app.py): `04-fifa-player-analysis/app.py`

### E-Commerce

- [Dataset download](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/download_data.py): `05-olist-ecommerce-dashboard/download_data.py`
- **Olist CSV tables**
- [DuckDB table loader](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/load_to_duckdb.py): `05-olist-ecommerce-dashboard/load_to_duckdb.py`
- **Olist DuckDB**
- [E-commerce queries](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/queries.sql): `05-olist-ecommerce-dashboard/queries.sql`
- [DuckDB query layer](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/db.py): `05-olist-ecommerce-dashboard/db.py`
- [Analysis notebook](https://github.com/sunilkumarmano/data-analysts-projects-101/blob/main/05-olist-ecommerce-dashboard/analysis.ipynb): `05-olist-ecommerce-dashboard/analysis.ipynb`

### Other components

- **Learner**
- **Kaggle datasets**

## Connections

- Learner → Dataset download: runs download (evidence: `README.md`)
- Kaggle datasets → Dataset download: provides dataset (evidence: `README.md`)
- Dataset download → Restaurant dataset: downloads
- Restaurant dataset → DuckDB query layer: loads data (evidence: `01-zomato-restaurant-analysis/db.py`)
- DuckDB query layer → Restaurant queries: parses queries (evidence: `01-zomato-restaurant-analysis/db.py`)
- Restaurant dashboard → DuckDB query layer: runs queries (evidence: `01-zomato-restaurant-analysis/app.py`)
- Analysis notebook → DuckDB query layer: runs queries (evidence: `README.md`)
- Restaurant dashboard → Learner: presents dashboard (evidence: `README.md`)
- Analysis notebook → Learner: explains findings (evidence: `README.md`)
- Learner → Dataset download: runs download (evidence: `README.md`)
- Kaggle datasets → Dataset download: provides dataset (evidence: `README.md`)
- Dataset download → Product listings: downloads
- Product listings → DuckDB query layer: loads data (evidence: `02-flipkart-price-analysis/db.py`)
- DuckDB query layer → Pricing queries: parses queries (evidence: `02-flipkart-price-analysis/db.py`)
- Pricing dashboard → DuckDB query layer: runs queries (evidence: `02-flipkart-price-analysis/app.py`)
- Analysis notebook → DuckDB query layer: runs queries (evidence: `README.md`)
- Pricing dashboard → Learner: presents dashboard (evidence: `README.md`)
- Analysis notebook → Learner: explains findings (evidence: `README.md`)
- Learner → Dataset download: runs download (evidence: `README.md`)
- Kaggle datasets → Dataset download: provides dataset (evidence: `README.md`)
- Dataset download → Supply-chain dataset: downloads
- Supply-chain dataset → DuckDB query layer: loads data (evidence: `03-supply-chain-analysis/db.py`)
- DuckDB query layer → Operations queries: parses queries (evidence: `03-supply-chain-analysis/db.py`)
- Operations dashboard → DuckDB query layer: runs queries (evidence: `03-supply-chain-analysis/app.py`)
- Analysis notebook → DuckDB query layer: runs queries (evidence: `README.md`)
- Operations dashboard → Learner: presents dashboard (evidence: `README.md`)
- Analysis notebook → Learner: explains findings (evidence: `README.md`)
- Learner → Dataset download: runs download (evidence: `README.md`)
- Kaggle datasets → Dataset download: provides dataset (evidence: `README.md`)
- Dataset download → Player dataset: downloads
- Player dataset → DuckDB query layer: loads data (evidence: `04-fifa-player-analysis/db.py`)
- DuckDB query layer → Scouting queries: parses queries (evidence: `04-fifa-player-analysis/db.py`)
- Scouting dashboard → DuckDB query layer: runs queries (evidence: `04-fifa-player-analysis/app.py`)
- Analysis notebook → DuckDB query layer: runs queries (evidence: `README.md`)
- Scouting dashboard → Player clustering: computes archetypes (evidence: `04-fifa-player-analysis/app.py`)
- Scouting dashboard → Learner: presents dashboard (evidence: `README.md`)
- Analysis notebook → Learner: explains findings (evidence: `README.md`)
- Learner → Dataset download: runs download (evidence: `README.md`)
- Kaggle datasets → Dataset download: provides dataset (evidence: `README.md`)
- Dataset download → Olist CSV tables: downloads
- Olist CSV tables → DuckDB table loader: loads CSVs (evidence: `05-olist-ecommerce-dashboard/load_to_duckdb.py`)
- DuckDB table loader → Olist DuckDB: builds database (evidence: `05-olist-ecommerce-dashboard/load_to_duckdb.py`)
- Olist DuckDB → DuckDB query layer: opens read-only (evidence: `05-olist-ecommerce-dashboard/db.py`)
- DuckDB query layer → E-commerce queries: parses queries (evidence: `05-olist-ecommerce-dashboard/db.py`)
- Analysis notebook → DuckDB query layer: runs queries (evidence: `README.md`)
- DuckDB query layer → Learner: returns results (evidence: `README.md`)
