A complete end-to-end data analytics portfolio project focused on analyzing customer shopping behavior using Python, SQL, MySQL, and Power BI.
The project transforms raw retail transaction data into actionable business insights through data cleaning, exploratory data analysis, SQL-based business analysis, and interactive dashboard visualization.
- Overview
- Features
- Business Problem Statement
- Business Question
- Project Workflow
- Dataset Summary
- Tools & Technologies
- Data Cleaning & Feature Engineering
- SQL Business Analysis
- Key Insights
- Power BI Dashboard
- Project Screenshots
- Business Recommendations
- Repository Structure
- Project Outcome
- Author
This project analyzes customer shopping behavior to understand:
- purchasing patterns
- customer demographics
- subscription behavior
- discount usage
- product performance
- shipping preferences
The analysis helps businesses make data-driven decisions to improve customer engagement, increase revenue, and optimize marketing strategies.
✅ Data Cleaning & Preprocessing
✅ Exploratory Data Analysis (EDA)
✅ SQL Business Analysis
✅ Customer Segmentation
✅ Revenue Trend Analysis
✅ Power BI Dashboard
✅ Business Recommendations
✅ End-to-End Analytics Workflow
A leading retail company wants to better understand customer shopping behavior to improve sales, customer satisfaction, and long-term loyalty.
The company is interested in identifying how factors such as:
- discounts
- subscriptions
- shipping preferences
- customer demographics
- product categories
influence purchasing decisions and repeat purchases.
"How can the company leverage consumer shopping data to identify trends, improve customer engagement, and optimize marketing and product strategies?"
- Business Problem Understanding
- Data Collection
- Data Cleaning & Preprocessing
- Exploratory Data Analysis (EDA)
- SQL-Based Business Analysis
- Dashboard Development in Power BI
- Business Insights & Recommendations
- Portfolio Documentation
| Attribute | Value |
|---|---|
| Total Rows | 3900 |
| Total Columns | 18 |
| Dataset Type | Retail Transaction Data |
| File Format | CSV |
- Customer demographics
- Purchase details
- Subscription status
- Shipping information
- Product categories
- Review ratings
- Discount usage
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
- SQL
- MySQL
- Power BI
- Jupyter Notebook
- VS Code
The dataset underwent multiple preprocessing and cleaning steps before analysis.
- Checked missing/null values
- Removed duplicate records
- Standardized column names
- Verified data consistency
- Converted categorical columns
- Handled inconsistent data types
- Created age-group segmentation
- Performed purchase frequency transformation
- Removed redundant/unnecessary columns
- Validated dataset structure
- Performed feature engineering
- Checked data distributions and outliers
- Which gender generated the highest revenue?
- Which age group contributes most to sales?
- Do subscribed customers spend more?
- Which product categories perform best?
- Which shipping method is preferred most?
- Does discount usage affect purchase behavior?
- Which customers are repeat buyers?
- Which products receive the highest ratings?
- Male customers generated slightly higher total revenue compared to female customers.
- Young adults were identified as the most active customer segment.
- Loyal customers contributed significantly to repeat purchases.
- Subscription-based customers showed better purchase consistency.
- Express shipping users demonstrated higher average purchase values.
- Discounts strongly influenced purchasing behavior for selected product categories.
- Clothing and electronics categories contributed significantly to total sales.
- Review ratings positively impacted repeat customer purchases.
- KPI Cards
- Revenue Analysis
- Customer Segmentation
- Product Performance Analysis
- Subscription Insights
- Age Group Revenue Distribution
- Shipping Method Analysis
- Interactive Filters & Slicers
- Improve customer loyalty programs
- Promote subscription benefits
- Optimize discount strategies
- Focus on high-performing products
- Use targeted marketing campaigns
- Improve personalized marketing using customer segmentation
customer-shopping-behavior-analysis/
│
├── data/
│ └── customer_shopping_behavior.csv
│
├── notebooks/
│ └── customer_behavior_analysis.ipynb
│
├── sql/
│ └── MYSQL.sql
│
├── dashboard/
│ └── Customer_Behavior_Dashboard.pbix
│
├── report/
│ └── Customer_Shopping_Behavior_Report.pdf
│
├── presentation/
│ └── Customer_Behavior_Presentation.pptx
│
├── images/
│ ├── workflow.png
│ ├── dashboard_preview.png
│ ├── null_values.png
│ ├── correlation_heatmap.png
│ ├── revenue_analysis.png
│ ├── customer_segmentation.png
│ └── eda_graphs.png
│
└── README.md
This project successfully transformed raw retail transaction data into meaningful business insights using data analytics, SQL querying, visualization techniques, and dashboard development.
The analysis demonstrates how businesses can leverage customer shopping data to improve strategic decision-making and customer engagement.






