# kavyapujar-16/customer_behaviour_analysis architecture

> Architecture diagram of the GitHub repository kavyapujar-16/customer_behaviour_analysis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kavyapujar-16/customer_behaviour_analysis
- Repository: https://github.com/kavyapujar-16/customer_behaviour_analysis

## Overview

ShopEasy’s repository is a customer-behavior analysis project. Its documented workflow moves from customer and product data through SQL/Python preprocessing, sentiment analysis, exploratory analysis, pattern recognition, and recommendations. The README supports these stage relationships, but no source excerpts were provided, so links from individual CSV files to the processing steps are left unverified.

Main entry points: [`shop_easy.sql`](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/shop_easy.sql) (SQL Preparation), [`customer_business_analysis.ipynb`](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/customer_business_analysis.ipynb) (Sentiment Analysis), [`data/customers.csv`](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/customers.csv) (Customers), [`data/customer_reviews.csv`](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/customer_reviews.csv) (Customer Reviews)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Customer Data"]
  node_customers["Customers<br/>[customers.csv]"]
  node_reviews["Customer Reviews"]
  node_journey["Customer Journey"]
  node_engagement["Engagement Data"]
  node_geography["Geography<br/>[geography.csv]"]
  node_products["Products<br/>[products.csv]"]
end

subgraph group_processing["Data Preparation"]
  node_sqlprep["SQL Preparation<br/>[shop_easy.sql]"]
end

subgraph group_analysis["Behavior Analysis"]
  node_sentiment["Sentiment Analysis"]
  node_eda["Exploratory Analysis"]
  node_patterns["Pattern Recognition"]
  node_recommendations["Recommendations"]
end

node_customers -.->|"feeds &#40;unverified&#41;"| node_sqlprep
node_reviews -.->|"feeds &#40;unverified&#41;"| node_sqlprep
node_journey -.->|"feeds &#40;unverified&#41;"| node_sqlprep
node_engagement -.->|"feeds &#40;unverified&#41;"| node_sqlprep
node_geography -.->|"feeds &#40;unverified&#41;"| node_sqlprep
node_products -.->|"feeds &#40;unverified&#41;"| node_sqlprep
node_sqlprep -->|"precedes"| node_sentiment
node_sentiment -->|"followed by"| node_eda
node_eda -->|"informs"| node_patterns
node_patterns -->|"guides"| node_recommendations

click node_customers "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/customers.csv"
click node_reviews "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/customer_reviews.csv"
click node_journey "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/customer_journey.csv"
click node_engagement "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/engagement_data.csv"
click node_geography "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/geography.csv"
click node_products "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/products.csv"
click node_sqlprep "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/shop_easy.sql"
click node_sentiment "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/customer_business_analysis.ipynb"
click node_eda "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/customer_business_analysis.ipynb"
click node_patterns "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/customer_business_analysis.ipynb"
click node_recommendations "https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/customer_business_analysis.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_customers,node_reviews,node_journey,node_engagement,node_geography,node_products toneBlue
class node_sqlprep toneAmber
class node_sentiment,node_eda,node_patterns,node_recommendations toneMint
```

## Components

### Customer Data

- [Customers](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/customers.csv): `data/customers.csv`
- [Customer Reviews](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/customer_reviews.csv): `data/customer_reviews.csv`
- [Customer Journey](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/customer_journey.csv): `data/customer_journey.csv`
- [Engagement Data](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/engagement_data.csv): `data/engagement_data.csv`
- [Geography](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/geography.csv): `data/geography.csv`
- [Products](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/data/products.csv): `data/products.csv`

### Data Preparation

- [SQL Preparation](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/shop_easy.sql): `shop_easy.sql`

### Behavior Analysis

- [Sentiment Analysis](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/customer_business_analysis.ipynb): `customer_business_analysis.ipynb`
- [Exploratory Analysis](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/customer_business_analysis.ipynb): `customer_business_analysis.ipynb`
- [Pattern Recognition](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/customer_business_analysis.ipynb): `customer_business_analysis.ipynb`
- [Recommendations](https://github.com/kavyapujar-16/customer_behaviour_analysis/blob/main/customer_business_analysis.ipynb): `customer_business_analysis.ipynb`

## Connections

- Customers → SQL Preparation: feeds (unverified)
- Customer Reviews → SQL Preparation: feeds (unverified)
- Customer Journey → SQL Preparation: feeds (unverified)
- Engagement Data → SQL Preparation: feeds (unverified)
- Geography → SQL Preparation: feeds (unverified)
- Products → SQL Preparation: feeds (unverified)
- SQL Preparation → Sentiment Analysis: precedes (evidence: `README.md`)
- Sentiment Analysis → Exploratory Analysis: followed by (evidence: `README.md`)
- Exploratory Analysis → Pattern Recognition: informs (evidence: `README.md`)
- Pattern Recognition → Recommendations: guides (evidence: `README.md`)
