# venkatavishnuvardhanthota/rossmann-sales-forecasting architecture

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

- Interactive diagram: https://gitdiagram.com/venkatavishnuvardhanthota/rossmann-sales-forecasting
- Repository: https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting

## Overview

This repository is an end-to-end Rossmann sales analytics and forecasting project. Its main workflow prepares data in MySQL, exports a merged dataset, analyzes and cleans it in Python, trains and evaluates Prophet and XGBoost forecasts, and presents reporting in Power BI. SQL business-question analyses and the preliminary Excel exploration are distinct capabilities, not sequential forecasting stages. The README documents these relationships; no source code excerpts were available, so implementation details and unverified data connections are omitted.

Main entry points: [`notebooks/02_forecasting_models.ipynb`](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/notebooks/02_forecasting_models.ipynb) (Modeling and evaluation), [`sql/query7_export_full_merged_dataset.sql`](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/sql/query7_export_full_merged_dataset.sql) (Merged-data export), [`data/processed/train_store_merged.csv`](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/data/processed/train_store_merged.csv) (Merged dataset), [`notebooks/01_eda_and_cleaning.ipynb`](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/notebooks/01_eda_and_cleaning.ipynb) (EDA and cleaning)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sql["SQL preparation"]
  node_mysql[("MySQL database")]
  node_schema["Table schema"]
  node_load["Data loading<br/>[02_load_data.sql]"]
  node_business_queries["Business queries 1–6"]
  node_export["Merged-data export"]
end

subgraph group_analysis["Exploration and analysis"]
  node_merged_data["Merged dataset"]
  node_excel["Preliminary analysis"]
  node_eda["EDA and cleaning"]
  node_cleaned_data["Cleaned dataset"]
end

subgraph group_forecast["Forecasting"]
  node_forecast_workflow["Modeling and evaluation"]
  node_prophet["Prophet model"]
  node_xgboost["XGBoost models"]
  node_forecast_outputs["Forecast outputs"]
end

subgraph group_reporting["Reporting"]
  node_powerbi["Power BI dashboard"]
end

node_analyst(("Analyst"))

node_analyst -->|"runs SQL"| node_mysql
node_schema -->|"creates tables"| node_mysql
node_load -->|"loads data"| node_mysql
node_analyst -->|"runs independently"| node_business_queries
node_analyst -->|"runs export"| node_export
node_export -->|"exports dataset"| node_merged_data
node_merged_data -->|"feeds Python phase"| node_eda
node_analyst -->|"runs notebook"| node_eda
node_analyst -->|"explores data"| node_excel
node_analyst -->|"runs notebook"| node_forecast_workflow
node_forecast_workflow -->|"saves model"| node_prophet
node_forecast_workflow -->|"saves models"| node_xgboost
node_forecast_workflow -->|"generates predictions"| node_forecast_outputs
node_analyst -->|"opens dashboard"| node_powerbi

click node_schema "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/sql/01_create_tables.sql"
click node_load "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/sql/02_load_data.sql"
click node_business_queries "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/tree/main/sql"
click node_export "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/sql/query7_export_full_merged_dataset.sql"
click node_merged_data "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/data/processed/train_store_merged.csv"
click node_excel "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/excel/rossmann_preliminary_analysis.xlsx"
click node_eda "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/notebooks/01_eda_and_cleaning.ipynb"
click node_cleaned_data "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/data/processed/rossmann_cleaned.csv"
click node_forecast_workflow "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/notebooks/02_forecasting_models.ipynb"
click node_prophet "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/model/prophet_holiday_model.json"
click node_xgboost "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/tree/main/model"
click node_forecast_outputs "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/tree/main/data/processed"
click node_powerbi "https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/dashboard/RossmannSalesDashboard.pbix"

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_mysql,node_schema,node_load,node_business_queries,node_export toneBlue
class node_merged_data,node_excel,node_eda,node_cleaned_data toneAmber
class node_forecast_workflow,node_prophet,node_xgboost,node_forecast_outputs toneMint
class node_powerbi toneRose
class node_analyst toneIndigo
```

## Components

### SQL preparation

- **MySQL database**
- [Table schema](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/sql/01_create_tables.sql): `sql/01_create_tables.sql`
- [Data loading](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/sql/02_load_data.sql): `sql/02_load_data.sql`
- [Business queries 1–6](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/tree/main/sql): `sql`
- [Merged-data export](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/sql/query7_export_full_merged_dataset.sql): `sql/query7_export_full_merged_dataset.sql`

### Exploration and analysis

- [Merged dataset](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/data/processed/train_store_merged.csv): `data/processed/train_store_merged.csv`
- [Preliminary analysis](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/excel/rossmann_preliminary_analysis.xlsx): `excel/rossmann_preliminary_analysis.xlsx`
- [EDA and cleaning](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/notebooks/01_eda_and_cleaning.ipynb): `notebooks/01_eda_and_cleaning.ipynb`
- [Cleaned dataset](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/data/processed/rossmann_cleaned.csv): `data/processed/rossmann_cleaned.csv`

### Forecasting

- [Modeling and evaluation](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/notebooks/02_forecasting_models.ipynb): `notebooks/02_forecasting_models.ipynb`
- [Prophet model](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/model/prophet_holiday_model.json): `model/prophet_holiday_model.json`
- [XGBoost models](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/tree/main/model): `model`
- [Forecast outputs](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/tree/main/data/processed): `data/processed`

### Reporting

- [Power BI dashboard](https://github.com/venkatavishnuvardhanthota/rossmann-sales-forecasting/blob/main/dashboard/RossmannSalesDashboard.pbix): `dashboard/RossmannSalesDashboard.pbix`

### Other components

- **Analyst**

## Connections

- Analyst → MySQL database: runs SQL (evidence: `README.md`)
- Table schema → MySQL database: creates tables (evidence: `README.md`)
- Data loading → MySQL database: loads data (evidence: `README.md`)
- Analyst → Business queries 1–6: runs independently (evidence: `README.md`)
- Analyst → Merged-data export: runs export (evidence: `README.md`)
- Merged-data export → Merged dataset: exports dataset (evidence: `README.md`)
- Merged dataset → EDA and cleaning: feeds Python phase (evidence: `README.md`)
- Analyst → EDA and cleaning: runs notebook (evidence: `README.md`)
- Analyst → Preliminary analysis: explores data (evidence: `README.md`)
- Analyst → Modeling and evaluation: runs notebook (evidence: `README.md`)
- Modeling and evaluation → Prophet model: saves model (evidence: `README.md`)
- Modeling and evaluation → XGBoost models: saves models (evidence: `README.md`)
- Modeling and evaluation → Forecast outputs: generates predictions (evidence: `README.md`)
- Analyst → Power BI dashboard: opens dashboard (evidence: `README.md`)
