# yashpawar-ds/cafe-sales-analysis architecture

> Architecture diagram of the GitHub repository yashpawar-ds/cafe-sales-analysis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yashpawar-ds/cafe-sales-analysis
- Repository: https://github.com/yashpawar-ds/cafe-sales-analysis

## Overview

This repository is a notebook-based analysis of a messy cafe-sales dataset. Its documented workflow takes the raw CSV through cleaning and type correction, then explores sales over time, item performance, and customer preferences before reporting findings. The analysis includes quantity and revenue, item popularity, dining mode, and payment method. The README describes these capabilities, but no notebook source was sampled, so the graph shows only documented data flow and does not infer specific function calls or chart outputs.

Main entry points: [`Cafe_sales.ipynb`](https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.ipynb) (Clean and convert), [`dirty_cafe_sales.csv`](https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/dirty_cafe_sales.csv) (Dirty sales CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_preparation["Data preparation"]
  node_cleaning["Clean and convert<br/>[Cafe_sales.ipynb]"]
end

subgraph group_analysis["Sales analysis"]
  node_monthly["Monthly sales<br/>[Cafe_sales.ipynb]"]
  node_items["Item performance<br/>[Cafe_sales.ipynb]"]
  node_preferences["Customer preferences<br/>[Cafe_sales.ipynb]"]
end

subgraph group_results["Reported results"]
  node_findings["Key findings<br/>[Cafe_sales.ipynb]"]
end

node_dataset["Dirty sales CSV"]

node_dataset -->|"loads"| node_cleaning
node_cleaning -->|"prepares data"| node_monthly
node_cleaning -->|"prepares data"| node_items
node_cleaning -->|"prepares data"| node_preferences
node_monthly -->|"summarizes"| node_findings
node_items -->|"summarizes"| node_findings
node_preferences -->|"summarizes"| node_findings

click node_dataset "https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/dirty_cafe_sales.csv"
click node_cleaning "https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.ipynb"
click node_monthly "https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.ipynb"
click node_items "https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.ipynb"
click node_preferences "https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.ipynb"
click node_findings "https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.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_cleaning toneBlue
class node_monthly,node_items,node_preferences toneAmber
class node_findings toneMint
class node_dataset toneTeal
```

## Components

### Data preparation

- [Clean and convert](https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.ipynb): `Cafe_sales.ipynb`

### Sales analysis

- [Monthly sales](https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.ipynb): `Cafe_sales.ipynb`
- [Item performance](https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.ipynb): `Cafe_sales.ipynb`
- [Customer preferences](https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.ipynb): `Cafe_sales.ipynb`

### Reported results

- [Key findings](https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/Cafe_sales.ipynb): `Cafe_sales.ipynb`

### Other components

- [Dirty sales CSV](https://github.com/yashpawar-ds/cafe-sales-analysis/blob/main/dirty_cafe_sales.csv): `dirty_cafe_sales.csv`

## Connections

- Dirty sales CSV → Clean and convert: loads
- Clean and convert → Monthly sales: prepares data
- Clean and convert → Item performance: prepares data
- Clean and convert → Customer preferences: prepares data
- Monthly sales → Key findings: summarizes
- Item performance → Key findings: summarizes
- Customer preferences → Key findings: summarizes
