# smw-1211/delve-into-data-analysis architecture

> Architecture diagram of the GitHub repository smw-1211/delve-into-data-analysis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/smw-1211/delve-into-data-analysis
- Repository: https://github.com/smw-1211/delve-into-data-analysis

## Overview

##### Main Components
- Repository Container: Start by depicting the central repository that holds all the projects.
- Data Sources: For each project, include components like CSV, Excel files (raw data) that feed into the analysis.
- Analysis & Processing: Indicate the Python notebooks (.ipynb) or scripts used for data cleaning and analysis.
- Visualization Layer: Highlight the Tableau workbooks (.twbx) and any other visual assets that serve as the presentation layer.
- Assets/Resources: Show any additional assets (e.g., images, supplementary files) that are used across these projects.

##### Relationships and Interactions
- Separation of Concerns: Emphasize that each project operates as an autonomous pipeline – data ingestion, analysis, and visualization with minimal cross-dependencies.

##### Architectural Patterns and Design Principles
- Modular Design: The file tree’s organization into separate directories suggests a modular approach, where each project is self-contained.
- Layered Architecture: Represent the data flow from extraction (raw data files) to processing (Python analysis) and then to visualization (Tableau and Excel outputs).
- Reusability & Extensibility: Although the projects are separate, consider representing a common "environment" or setup (as detailed in the README’s installation and run instructions) that enables these modules to function in a similar manner.

##### Final Recommendations to the Principal Software Engineer
- Inside each project component, split it further into three layers:
1. Data Inputs (CSV/Excel files, external crawling if applicable),
2. Computation/Analysis (Python notebooks/scripts),
3. Output/Visualization (Tableau workbooks, dashboards, insights).
- Adding supplementary notes about the technical stack used (e.g., Python, Tableau) alongside the respective pipeline components.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Global Repository Container
    Repo["Data Analysis Repository"]:::repository

    %% Air Quality Analysis Module
    subgraph "Air Quality Analysis Module"
        direction TB
        aq_data["Air Quality Analysis – Data Source"]:::dataSource
        aq_analysis["Air Quality Analysis – Analysis Notebook"]:::analysis
        aq_viz["Air Quality Analysis – Tableau Dashboard"]:::visualization
        aq_data -->|"flow"| aq_analysis
        aq_analysis -->|"flow"| aq_viz
        aq_assets["Air Quality Analysis – Assets/Resources"]:::assets
        aq_viz -.->|"supplements"| aq_assets
    end

    %% Baby Names Data Analysis Module
    subgraph "Baby Names Data Analysis Module"
        direction TB
        bn_data["Baby Names Data Analysis – Data Source"]:::dataSource
        bn_viz["Baby Names Data Analysis – Tableau Dashboard"]:::visualization
        bn_data -->|"flow"| bn_viz
        bn_assets["Baby Names Data Analysis – Assets/Resources"]:::assets
        bn_viz -.->|"supplements"| bn_assets
    end

    %% Haberman Survival Data Analysis Module
    subgraph "Haberman Survival Data Analysis Module"
        direction TB
        hab_data["Haberman Survival Data Analysis – Data Source"]:::dataSource
        hab_analysis["Haberman Survival Data Analysis – Analysis Notebook"]:::analysis
        hab_data -->|"flow"| hab_analysis
    end

    %% Hotel Reviews Analysis Module
    subgraph "Hotel Reviews Analysis Module"
        direction TB
        hr_data["Hotel Reviews Analysis – Data Source"]:::dataSource
        hr_analysis["Hotel Reviews Analysis – Analysis Notebook"]:::analysis
        hr_data -->|"flow"| hr_analysis
        hr_assets["Hotel Reviews Analysis – Assets/Resources"]:::assets
        hr_analysis -.->|"supplements"| hr_assets
    end

    %% House Price Prediction Module
    subgraph "House Price Prediction Module"
        direction TB
        hp_data["House Price Prediction – Data Source"]:::dataSource
        hp_analysis["House Price Prediction – Analysis Notebook"]:::analysis
        hp_data -->|"flow"| hp_analysis
        hp_assets["House Price Prediction – Assets/Resources"]:::assets
        hp_analysis -.->|"supplements"| hp_assets
    end

    %% Super Store Analysis Module
    subgraph "Super Store Analysis Module"
        direction TB
        ss_data["Super Store Analysis – Data Source"]:::dataSource
        ss_viz1["Super Store Analysis – Tableau Dashboard 1"]:::visualization
        ss_viz2["Super Store Analysis – Tableau Dashboard 2"]:::visualization
        ss_viz3["Super Store Analysis – Tableau Dashboard 3"]:::visualization
        ss_data -->|"flow"| ss_viz1
        ss_data -->|"flow"| ss_viz2
        ss_data -->|"flow"| ss_viz3
        ss_assets["Super Store Analysis – Assets/Resources"]:::assets
        ss_viz1 -.->|"supplements"| ss_assets
        ss_viz2 -.->|"supplements"| ss_assets
        ss_viz3 -.->|"supplements"| ss_assets
    end

    %% Connections from Repository Container to each Module Data Source
    Repo -->|"contains"| aq_data
    Repo -->|"contains"| bn_data
    Repo -->|"contains"| hab_data
    Repo -->|"contains"| hr_data
    Repo -->|"contains"| hp_data
    Repo -->|"contains"| ss_data

    %% Click Events
    click Repo "https://github.com/smw-1211/delve-into-data-analysis/blob/main/README.md"
    click aq_data "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Air Quality Analysis/data.csv"
    click aq_analysis "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Air Quality Analysis/Indian-Air-Quality.ipynb"
    click aq_viz "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Air Quality Analysis/AQI Analysis Dashboard.twbx"
    click aq_assets "https://github.com/smw-1211/delve-into-data-analysis/tree/main/Air Quality Analysis/assets"
    click bn_data "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Baby-Names-Data-Analysis/01_TopBabyNames.xlsx"
    click bn_viz "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Baby-Names-Data-Analysis/Baby_Names_Insights.twbx"
    click bn_assets "https://github.com/smw-1211/delve-into-data-analysis/tree/main/Baby-Names-Data-Analysis/assets"
    click hab_data "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Haberman_Survival-Data-Analysis/haberman.csv"
    click hab_analysis "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Haberman_Survival-Data-Analysis/Data Visualization with Haberman Dataset.ipynb"
    click hr_data "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Hotel-Reviews-Analysis/tripadvisor_hotel_reviews.csv"
    click hr_analysis "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Hotel-Reviews-Analysis/Trip advisor Hotel Review sentiment analysis.ipynb"
    click hr_assets "https://github.com/smw-1211/delve-into-data-analysis/tree/main/Hotel-Reviews-Analysis/assets"
    click hp_data "https://github.com/smw-1211/delve-into-data-analysis/blob/main/House-Price-Prediction/house_data.csv"
    click hp_analysis "https://github.com/smw-1211/delve-into-data-analysis/blob/main/House-Price-Prediction/house_prediction(Final).ipynb"
    click hp_assets "https://github.com/smw-1211/delve-into-data-analysis/tree/main/House-Price-Prediction/assets"
    click ss_data "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Super-Store-Analysis/Sample-Superstore-Subset-Excel T.xlsx"
    click ss_viz1 "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Super-Store-Analysis/Sample super Store data analysis (1).twbx"
    click ss_viz2 "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Super-Store-Analysis/Sample super Store data analysis.twbx"
    click ss_viz3 "https://github.com/smw-1211/delve-into-data-analysis/blob/main/Super-Store-Analysis/Super Sales Data (1).twbx"
    click ss_assets "https://github.com/smw-1211/delve-into-data-analysis/tree/main/Super-Store-Analysis"

    %% Styles
    classDef repository fill:#F2D0A4,stroke:#333,stroke-width:2px;
    classDef dataSource fill:#D1E8E2,stroke:#006,stroke-width:2px;
    classDef analysis fill:#F9E79F,stroke:#C0392B,stroke-width:2px;
    classDef visualization fill:#D5F5E3,stroke:#27AE60,stroke-width:2px;
    classDef assets fill:#FADBD8,stroke:#C0392B,stroke-width:2px;
```
