An end-to-end Data Analytics project analyzing customer purchasing patterns using Python, SQL, and Power BI.
The project transforms raw customer transaction data into business insights through data preparation, SQL-based analysis, and interactive dashboard visualization.
The objective of this project is to understand customer purchasing behavior, revenue patterns, product performance, and customer segments and translate the findings into actionable business insights.
- Analyze customer purchasing behavior
- Identify revenue patterns across customer segments
- Analyze product and category performance
- Evaluate subscription and shipping behavior
- Identify repeat and loyal customers
- Analyze discount usage and its relationship with purchasing
- Understand customer demographics
- Present findings through an interactive Power BI dashboard
| Tool | Purpose |
|---|---|
| Python | Data preparation and preprocessing |
| Pandas | Data manipulation and analysis |
| SQL | Business analysis and querying |
| SQLite / Database | Data storage and querying |
| Power BI | Interactive dashboard and visualization |
| Jupyter Notebook | Development and analysis |
Customer-Shopping-Behavior-Analysis/
│
├── DATASET/
│ └── customer_shopping_behavior.csv
│
├── SQL/
│ └── customer_behavior.sql
│
├── PYTHON/
│ └── Customer_Shopping_Behaviour_Analysis.ipynb
│
├── POWER BI/
│ └── customer_behavior_dashboard.pbix
│
├── IMAGES/
│ └── customer_behavior_dashboard.png
│
├── README.md
└── LICENSE
Raw Customer Data
│
▼
Python + Pandas
(Data Preparation)
│
▼
Database
│
▼
SQL Analysis
(Business Questions)
│
▼
Power BI
(Dashboard & Visualization)
│
▼
Business Insights
Python and Pandas are used for:
- Loading the customer shopping dataset
- Inspecting the dataset
- Cleaning and preparing the data
- Transforming data for analysis
- Preparing the dataset for database and visualization workflows
The complete analysis notebook is available in the PYTHON directory.
The SQL analysis answers several business questions related to customer and product performance.
- Revenue by gender
- Customers spending above average after receiving discounts
- Top-rated products
- Average purchase amount by shipping type
- Subscription status analysis
- Products with the highest discount usage
- Customer segmentation
- Top products within each category
- Repeat buyer analysis
- Revenue contribution by age group
- Aggregate Functions
CASEStatements- Common Table Expressions (CTEs)
- Window Functions
- Subqueries
GROUP BYORDER BY- Ranking Functions
The Power BI dashboard provides an interactive view of customer shopping behavior.
The dashboard helps explore:
- Customer demographics
- Revenue performance
- Product category performance
- Purchasing behavior
- Subscription analysis
- Shipping preferences
- Customer segmentation
This project helps answer questions such as:
- Which customer segments contribute the most revenue?
- Which products and categories perform best?
- How does subscription status relate to purchasing behavior?
- Which shipping methods are most commonly used?
- Which customers are repeat or loyal buyers?
- Which products receive the highest discounts?
- How do purchasing patterns differ across age groups?
- How do discounts relate to customer spending?
- Data Cleaning
- Data Preparation
- Python
- Pandas
- SQL
- Exploratory Data Analysis
- Business Analysis
- Data Visualization
- Power BI Dashboard Development
- Customer Segmentation
- Analytical Thinking
git clone https://github.com/Shrey2503/Customer-Shopping-Behavior-Analysis.git
cd Customer-Shopping-Behavior-Analysispip install pandas sqlalchemyInstall any additional database driver required by your specific database setup.
- Open the Jupyter Notebook from the
PYTHONdirectory. - Load the customer shopping dataset.
- Perform the required data preparation.
- Execute the SQL queries from the
SQLdirectory. - Open the Power BI file to explore the dashboard.
- Customer segmentation using Machine Learning
- Sales forecasting
- Predictive customer analysis
- Product recommendation system
- Interactive web-based analytics dashboard
Shreyash Vats
Aspiring Data Analyst SQL | Python | Power BI | Excel
This project is licensed under the MIT License. See the LICENSE file for details.
