This project analyzes customer shopping behavior using transactional data from 3,900 purchases across multiple product categories. The objective is to uncover customer spending patterns, purchasing preferences, subscription trends, and business opportunities through data analysis and visualization.
The project combines Python, PostgreSQL, and Power BI to perform end-to-end data analytics, from data cleaning and transformation to business intelligence reporting.
- Python (Pandas, NumPy)
- MYSQL
- SQL
- Power BI
- Jupyter Notebook
- Records: 3,900
- Features: 18
-
Customer Demographics
- Age
- Gender
- Location
- Subscription Status
-
Purchase Information
- Item Purchased
- Category
- Purchase Amount
- Season
- Size
- Color
-
Customer Behavior
- Discount Applied
- Previous Purchases
- Frequency of Purchases
- Review Rating
- Shipping Type
- Loaded dataset using Pandas
- Performed exploratory data analysis
- Handled missing values in Review Rating
- Standardized column names
- Created Age Group categories
- Generated additional analytical features
- Removed redundant columns
- Loaded cleaned data into PostgreSQL
Performed analytical queries to answer business questions such as:
- Revenue generated by gender
- High-spending customers using discounts
- Top-rated products
- Shipping type comparison
- Subscriber vs non-subscriber spending behavior
- Discount-dependent products
- Customer segmentation
- Top products within each category
- Repeat buyer subscription analysis
- Revenue contribution by age group
Male customers generated significantly higher revenue than female customers.
Most customers belong to the Loyal segment, indicating strong repeat purchasing behavior.
Products such as Gloves, Sandals, and Boots received the highest average ratings.
Non-subscribers generated higher overall revenue due to their larger customer base.
Young Adult customers contributed the highest revenue among all age groups.
Express shipping customers showed slightly higher average purchase amounts.
The project includes an interactive Power BI dashboard featuring:
- Total Customers KPI
- Average Purchase Amount
- Average Review Rating
- Revenue by Category
- Sales by Category
- Revenue by Age Group
- Sales by Age Group
- Subscription Analysis
- Interactive Filters and Slicers
Offer exclusive discounts and loyalty benefits to encourage subscriptions.
Reward repeat customers and encourage long-term engagement.
Monitor discount-heavy products to maintain profitability.
Highlight top-rated and best-selling products in marketing campaigns.
Focus campaigns on high-revenue age groups and frequent purchasers.
Customer-Shopping-Behavior-Analysis/
│
├── data/
│ └── shopping_data.csv
│
├── notebooks/
│ └── customer_analysis.ipynb
│
├── sql/
│ ├── revenue_analysis.sql
│ ├── customer_segmentation.sql
│ └── business_queries.sql
│
├── powerbi/
│ └── customer_dashboard.pbix
│
├── images/
│ └── dashboard.png
│
├── README.md
└── requirements.txt
Ravi Bhatt
Aspiring Data Analyst | SQL | Python | Power BI | Machine Learning Enthusiast