# manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy architecture

> Architecture diagram of the GitHub repository manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy
- Repository: https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy

## Overview

This is a Python fuel-station analytics project: users inspect operational trends through exploratory analysis and a Streamlit dashboard, and can separately run profit prediction and customer segmentation. The shared input is an Excel transaction dataset; analysis, modeling, and segmentation are separate scripts rather than a coordinated pipeline. The dashboard also embeds its own profit model. The graph reflects documented capabilities and sampled code; the dataset contents and any links between standalone scripts were not inspected.

Main entry points: [`data/fuel_station_data_500_rows.xlsx`](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/data/fuel_station_data_500_rows.xlsx) (Transaction Dataset), [`src/dashboard.py`](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.py) (Streamlit Dashboard), [`src/Data Analysis.py`](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Data%20Analysis.py) (Exploratory Analysis), [`src/Customer_Segmentation.py`](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Customer_Segmentation.py) (Customer Segmentation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Station Data"]
  node_dataset["Transaction Dataset"]
end

subgraph group_insights["Operational Insights"]
  node_eda["Exploratory Analysis<br/>[Data Analysis.py]"]
  node_eda_charts["Analysis Visualizations<br/>[Data Analysis.py]"]
end

subgraph group_models["Analytics Models"]
  node_segmentation["Customer Segmentation"]
  node_segment_profiles["Cluster Profiles"]
  node_standalone_model["Standalone Profit Model"]
end

subgraph group_app["Interactive Dashboard"]
  node_dashboard["Streamlit Dashboard<br/>[dashboard.py]"]
  node_dashboard_data["Dashboard Data Loading<br/>[dashboard.py]"]
  node_dashboard_views["Filtered KPIs and Trends<br/>[dashboard.py]"]
  node_dashboard_model["Dashboard Profit Model<br/>[dashboard.py]"]
  node_model_results["Model Metrics and Importance<br/>[dashboard.py]"]
end

node_analyst(("Station Analyst"))

node_analyst -->|"runs analysis"| node_eda
node_dataset -->|"loads data"| node_eda
node_eda -->|"creates plots"| node_eda_charts
node_analyst -->|"runs clustering"| node_segmentation
node_dataset -->|"loads data"| node_segmentation
node_segmentation -->|"prints profiles"| node_segment_profiles
node_analyst -->|"runs prediction"| node_standalone_model
node_dataset -->|"loads data"| node_standalone_model
node_analyst -->|"opens dashboard"| node_dashboard
node_dashboard -->|"loads data"| node_dashboard_data
node_dataset -->|"reads workbook"| node_dashboard_data
node_dashboard -->|"renders views"| node_dashboard_views
node_dashboard_data -->|"provides rows"| node_dashboard_views
node_dashboard -->|"runs prediction"| node_dashboard_model
node_dashboard_data -->|"provides rows"| node_dashboard_model
node_dashboard_model -->|"reports metrics"| node_model_results

click node_dataset "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/data/fuel_station_data_500_rows.xlsx"
click node_eda "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Data%20Analysis.py"
click node_eda_charts "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Data%20Analysis.py"
click node_segmentation "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Customer_Segmentation.py"
click node_segment_profiles "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Customer_Segmentation.py"
click node_standalone_model "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Predictive_Modeling.py"
click node_dashboard "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.py"
click node_dashboard_data "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.py"
click node_dashboard_views "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.py"
click node_dashboard_model "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.py"
click node_model_results "https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.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_dataset toneBlue
class node_eda,node_eda_charts toneAmber
class node_segmentation,node_segment_profiles,node_standalone_model toneMint
class node_dashboard,node_dashboard_data,node_dashboard_views,node_dashboard_model,node_model_results toneRose
class node_analyst toneIndigo
```

## Components

### Station Data

- [Transaction Dataset](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/data/fuel_station_data_500_rows.xlsx): `data/fuel_station_data_500_rows.xlsx`

### Operational Insights

- [Exploratory Analysis](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Data%20Analysis.py): `src/Data Analysis.py`
- [Analysis Visualizations](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Data%20Analysis.py): `src/Data Analysis.py`

### Analytics Models

- [Customer Segmentation](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Customer_Segmentation.py): `src/Customer_Segmentation.py`
- [Cluster Profiles](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Customer_Segmentation.py): `src/Customer_Segmentation.py`
- [Standalone Profit Model](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/Predictive_Modeling.py): `src/Predictive_Modeling.py`

### Interactive Dashboard

- [Streamlit Dashboard](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.py): `src/dashboard.py`
- [Dashboard Data Loading](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.py): `src/dashboard.py`
- [Filtered KPIs and Trends](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.py): `src/dashboard.py`
- [Dashboard Profit Model](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.py): `src/dashboard.py`
- [Model Metrics and Importance](https://github.com/manoj-6303/petrol-bunk-analysis-and-profitable-efficinecy/blob/main/src/dashboard.py): `src/dashboard.py`

### Other components

- **Station Analyst**

## Connections

- Station Analyst → Exploratory Analysis: runs analysis (evidence: `README.md`)
- Transaction Dataset → Exploratory Analysis: loads data (evidence: `src/Data Analysis.py`)
- Exploratory Analysis → Analysis Visualizations: creates plots (evidence: `src/Data Analysis.py`)
- Station Analyst → Customer Segmentation: runs clustering (evidence: `README.md`)
- Transaction Dataset → Customer Segmentation: loads data (evidence: `src/Customer_Segmentation.py`)
- Customer Segmentation → Cluster Profiles: prints profiles (evidence: `src/Customer_Segmentation.py`)
- Station Analyst → Standalone Profit Model: runs prediction (evidence: `README.md`)
- Transaction Dataset → Standalone Profit Model: loads data (evidence: `src/Predictive_Modeling.py`)
- Station Analyst → Streamlit Dashboard: opens dashboard (evidence: `README.md`)
- Streamlit Dashboard → Dashboard Data Loading: loads data (evidence: `src/dashboard.py`)
- Transaction Dataset → Dashboard Data Loading: reads workbook (evidence: `src/dashboard.py`)
- Streamlit Dashboard → Filtered KPIs and Trends: renders views (evidence: `src/dashboard.py`)
- Dashboard Data Loading → Filtered KPIs and Trends: provides rows (evidence: `src/dashboard.py`)
- Streamlit Dashboard → Dashboard Profit Model: runs prediction (evidence: `src/dashboard.py`)
- Dashboard Data Loading → Dashboard Profit Model: provides rows (evidence: `src/dashboard.py`)
- Dashboard Profit Model → Model Metrics and Importance: reports metrics (evidence: `src/dashboard.py`)
