# saketj3003/project-black-friday-sale architecture

> Architecture diagram of the GitHub repository saketj3003/project-black-friday-sale, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/saketj3003/project-black-friday-sale
- Repository: https://github.com/saketj3003/project-black-friday-sale

## Overview

##### Project type and purpose
- Its purpose is to load a CSV file, clean and transform the data, and produce charts/insights around customer demographics and buying patterns.

##### File structure
- Top level:
- “Project – Black Friday Sale/” folder containing 7 notebooks (1–7) and BlackFriday.csv
- A “.ipynb_checkpoints” subfolder (auto-saved notebook checkpoints)
- README.md at the root
- No backend/frontend split—everything lives in Jupyter notebooks
- Single data source (BlackFriday.csv)
- No build scripts or deployment configs (pure analysis code)

##### README for additional insights
- Project workflow divided into seven analytical steps (walkthrough, column analysis, gender, age/marital status, multi-column, occupation/product, combined analysis)
- Uses Python libraries: Pandas, NumPy, Seaborn
- Produces pie charts, bar plots, countplots

- Use rectangles (processes) to represent:
- Data ingestion & cleaning
- Each of the 7 notebook modules
- From CSV → Cleaning → Analysis modules → Visualization → Output
- Between notebook modules if there is a sequence or data dependency
- Blue for data stores (CSV, DataFrame in memory)
- Green for processing steps (cleaning, modules)
- Orange for outputs/visualizations

##### Detailed capture of essential architectural elements
- Python runtime/Jupyter kernel as the execution host
- External library dependencies (Pandas/NumPy/Seaborn) near the processing components

## Diagram (Mermaid)

```mermaid
graph TB
    %% Data Source
    DS["BlackFriday.csv"]:::data
    click DS "https://github.com/saketj3003/project-black-friday-sale/blob/main/Project - Black Friday Sale/BlackFriday.csv"

    %% Environment
    subgraph "Jupyter Notebook / Python Runtime" 
        ENV_NOTE["Execution Host"]:::env
        %% Data Ingestion & Cleaning
        Cleaning["Data Ingestion & Cleaning"]:::process
        click Cleaning "https://github.com/saketj3003/project-black-friday-sale/blob/main/Project - Black Friday Sale/1. Black Friday - Walkthrough.ipynb"

        %% Analysis Modules
        subgraph "EDA Modules"
            M1["Walkthrough (Module 1)"]:::process
            click M1 "https://github.com/saketj3003/project-black-friday-sale/blob/main/Project - Black Friday Sale/1. Black Friday - Walkthrough.ipynb"

            M2["Column Statistics (Module 2)"]:::process
            click M2 "https://github.com/saketj3003/project-black-friday-sale/blob/main/Project - Black Friday Sale/2. Black Friday - Analyzing Columns.ipynb"

            M3["Gender Analysis (Module 3)"]:::process
            click M3 "https://github.com/saketj3003/project-black-friday-sale/blob/main/Project - Black Friday Sale/3. Black Friday - Analyzing Gender.ipynb"

            M4["Age & Marital Status (Module 4)"]:::process
            click M4 "https://github.com/saketj3003/project-black-friday-sale/blob/main/Project - Black Friday Sale/4. Black Friday - Analyzing Age & Marital Status.ipynb"

            M5["Multi-Column Analysis (Module 5)"]:::process
            click M5 "https://github.com/saketj3003/project-black-friday-sale/blob/main/Project - Black Friday Sale/5. Black Friday - Multi Column Analysis.ipynb"

            M6["Occupation & Product Analysis (Module 6)"]:::process
            click M6 "https://github.com/saketj3003/project-black-friday-sale/blob/main/Project - Black Friday Sale/6. Occupation and Product Analysis.ipynb"

            M7["Combined Gender & Marital Status (Module 7)"]:::process
            click M7 "https://github.com/saketj3003/project-black-friday-sale/blob/main/Project - Black Friday Sale/7. Black Friday - Combining Gender and Marital Status.ipynb"
        end

        %% Visualization Engine
        VisualEngine["Seaborn / Matplotlib"]:::visual
        %% Output Artifacts
        Outputs["Charts & Insight Summaries"]:::output
    end

    %% Notebook Checkpoints
    Checkpoints[".ipynb_checkpoints"]:::data
    click Checkpoints "https://github.com/saketj3003/project-black-friday-sale/tree/main/Project - Black Friday Sale/.ipynb_checkpoints/"

    %% Workflow README
    README["README.md"]:::data
    click README "https://github.com/saketj3003/project-black-friday-sale/blob/main/Project - Black Friday Sale/README.md"

    %% Data Flow
    DS -->|"raw CSV"| Cleaning
    Cleaning -->|"cleaned DataFrame"| M1
    M1 -->|"cleaned DataFrame"| M2
    M2 -->|"cleaned DataFrame"| M3
    M3 -->|"cleaned DataFrame"| M4
    M4 -->|"cleaned DataFrame"| M5
    M5 -->|"cleaned DataFrame"| M6
    M6 -->|"cleaned DataFrame"| M7

    %% Each module to VisualEngine
    M1 -->|"chart object"| VisualEngine
    M2 -->|"chart object"| VisualEngine
    M3 -->|"chart object"| VisualEngine
    M4 -->|"chart object"| VisualEngine
    M5 -->|"chart object"| VisualEngine
    M6 -->|"chart object"| VisualEngine
    M7 -->|"chart object"| VisualEngine

    VisualEngine -->|"render charts"| Outputs

    %% Backups
    M1 -.-> Checkpoints
    M2 -.-> Checkpoints
    M3 -.-> Checkpoints
    M4 -.-> Checkpoints
    M5 -.-> Checkpoints
    M6 -.-> Checkpoints
    M7 -.-> Checkpoints

    %% Styles
    classDef data fill:#ADD8E6,stroke:#333,stroke-width:1px;
    classDef process fill:#90EE90,stroke:#333,stroke-width:1px;
    classDef visual fill:#FFD580,stroke:#333,stroke-width:1px;
    classDef output fill:#FFA500,stroke:#333,stroke-width:1px;
    classDef env fill:#D3D3D3,stroke:#333,stroke-width:1px;
```
