# pocharamjayanth/restaurant-performance-analytics architecture

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

- Interactive diagram: https://gitdiagram.com/pocharamjayanth/restaurant-performance-analytics
- Repository: https://github.com/pocharamjayanth/restaurant-performance-analytics

## Overview

This is a restaurant-performance analytics project: sample or full raw records are cleaned, then explored and summarized through Python, SQL, and spreadsheet outputs, with results presented in a Power BI dashboard and an executive report. The graph preserves those distinct analysis branches and their documented outputs. Source excerpts confirm Python file reads and writes; links involving the dashboard and report follow the README workflow, since their internals were not sampled.

Main entry points: [`data/cleaned/zomato_cleaned.csv`](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/data/cleaned/zomato_cleaned.csv) (Cleaned dataset), [`python/sql_analysis.py`](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/sql_analysis.py) (SQL analysis), [`powerbi/zomato data.pbix`](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/powerbi/zomato%20data.pbix) (Power BI dashboard), [`python/create_sample.py`](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/create_sample.py) (Sample generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Data inputs"]
  node_sample_generator["Sample generator<br/>[create_sample.py]"]
  node_raw_csv["Raw restaurant CSV"]
  node_dictionary["Data dictionary"]
end

subgraph group_prep["Data preparation"]
  node_cleaning["Data cleaning<br/>[data_cleaning.py]"]
  node_cleaned_csv["Cleaned dataset<br/>[zomato_cleaned.csv]"]
end

subgraph group_analysis["Analysis outputs"]
  node_eda["Exploratory analysis<br/>[eda_analysis.py]"]
  node_eda_charts["EDA chart output"]
  node_sql_analysis["SQL analysis<br/>[sql_analysis.py]"]
  node_sql_queries["Business queries<br/>[zomato_queries.sql]"]
  node_database[("SQLite database<br/>[zomato.db]")]
  node_excel_summary["Pivot summary<br/>[excel_summary.py]"]
  node_pivot_csv["Pivot CSV"]
end

subgraph group_reporting["Business reporting"]
  node_dashboard["Power BI dashboard<br/>[zomato data.pbix]"]
  node_report["Executive findings<br/>[summary_report.txt]"]
end

node_analyst(("Analyst"))

node_analyst -->|"creates sample"| node_sample_generator
node_sample_generator -->|"writes CSV"| node_raw_csv
node_raw_csv -->|"provides input"| node_cleaning
node_cleaning -->|"writes cleaned data"| node_cleaned_csv
node_cleaned_csv -->|"loads data"| node_eda
node_eda -->|"saves chart"| node_eda_charts
node_cleaned_csv -->|"loads data"| node_sql_analysis
node_sql_analysis -->|"writes table"| node_database
node_sql_analysis -.->|"runs equivalent queries"| node_sql_queries
node_analyst -->|"reviews queries"| node_sql_queries
node_cleaned_csv -->|"loads data"| node_excel_summary
node_excel_summary -->|"exports summary"| node_pivot_csv
node_database -->|"feeds dashboard"| node_dashboard
node_pivot_csv -->|"supports dashboard"| node_dashboard
node_dashboard -.->|"informs findings"| node_report
node_dictionary -->|"describes fields"| node_analyst

click node_sample_generator "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/create_sample.py"
click node_dictionary "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/data/raw/dictionary_data.txt"
click node_cleaning "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/data_cleaning.py"
click node_cleaned_csv "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/data/cleaned/zomato_cleaned.csv"
click node_eda "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/eda_analysis.py"
click node_sql_analysis "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/sql_analysis.py"
click node_sql_queries "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/sql/zomato_queries.sql"
click node_database "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/data/zomato.db"
click node_excel_summary "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/excel_summary.py"
click node_pivot_csv "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/excel/zomato_summary_pivot.csv"
click node_dashboard "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/powerbi/zomato%20data.pbix"
click node_report "https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/reports/summary_report.txt"

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_sample_generator,node_raw_csv,node_dictionary toneBlue
class node_cleaning,node_cleaned_csv toneAmber
class node_eda,node_eda_charts,node_sql_analysis,node_sql_queries,node_database,node_excel_summary,node_pivot_csv toneMint
class node_dashboard,node_report toneRose
class node_analyst toneIndigo
```

## Components

### Data inputs

- [Sample generator](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/create_sample.py): `python/create_sample.py`
- **Raw restaurant CSV**
- [Data dictionary](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/data/raw/dictionary_data.txt): `data/raw/dictionary_data.txt`

### Data preparation

- [Data cleaning](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/data_cleaning.py): `python/data_cleaning.py`
- [Cleaned dataset](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/data/cleaned/zomato_cleaned.csv): `data/cleaned/zomato_cleaned.csv`

### Analysis outputs

- [Exploratory analysis](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/eda_analysis.py): `python/eda_analysis.py`
- **EDA chart output**
- [SQL analysis](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/sql_analysis.py): `python/sql_analysis.py`
- [Business queries](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/sql/zomato_queries.sql): `sql/zomato_queries.sql`
- [SQLite database](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/data/zomato.db): `data/zomato.db`
- [Pivot summary](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/python/excel_summary.py): `python/excel_summary.py`
- [Pivot CSV](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/excel/zomato_summary_pivot.csv): `excel/zomato_summary_pivot.csv`

### Business reporting

- [Power BI dashboard](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/powerbi/zomato%20data.pbix): `powerbi/zomato data.pbix`
- [Executive findings](https://github.com/pocharamjayanth/restaurant-performance-analytics/blob/main/reports/summary_report.txt): `reports/summary_report.txt`

### Other components

- **Analyst**

## Connections

- Analyst → Sample generator: creates sample (evidence: `README.md`)
- Sample generator → Raw restaurant CSV: writes CSV (evidence: `python/create_sample.py`)
- Raw restaurant CSV → Data cleaning: provides input (evidence: `python/data_cleaning.py`)
- Data cleaning → Cleaned dataset: writes cleaned data (evidence: `python/data_cleaning.py`)
- Cleaned dataset → Exploratory analysis: loads data (evidence: `python/eda_analysis.py`)
- Exploratory analysis → EDA chart output: saves chart (evidence: `README.md`)
- Cleaned dataset → SQL analysis: loads data (evidence: `python/sql_analysis.py`)
- SQL analysis → SQLite database: writes table (evidence: `python/sql_analysis.py`)
- SQL analysis → Business queries: runs equivalent queries (evidence: `README.md`)
- Analyst → Business queries: reviews queries (evidence: `README.md`)
- Cleaned dataset → Pivot summary: loads data (evidence: `python/excel_summary.py`)
- Pivot summary → Pivot CSV: exports summary (evidence: `python/excel_summary.py`)
- SQLite database → Power BI dashboard: feeds dashboard (evidence: `README.md`)
- Pivot CSV → Power BI dashboard: supports dashboard (evidence: `README.md`)
- Power BI dashboard → Executive findings: informs findings (evidence: `README.md`)
- Data dictionary → Analyst: describes fields (evidence: `README.md`)
