Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Customer Shopping Behavior Analysis

Project Overview

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.


Tools & Technologies

  • Python (Pandas, NumPy)
  • MYSQL
  • SQL
  • Power BI
  • Jupyter Notebook

Dataset Information

Dataset Size

  • Records: 3,900
  • Features: 18

Key Attributes

  • 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

Project Workflow

1. Data Cleaning & Preprocessing (Python)

  • 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

2. SQL Business Analysis

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

Key Insights

Revenue by Gender

Male customers generated significantly higher revenue than female customers.

Customer Segmentation

Most customers belong to the Loyal segment, indicating strong repeat purchasing behavior.

Top-Rated Products

Products such as Gloves, Sandals, and Boots received the highest average ratings.

Subscription Analysis

Non-subscribers generated higher overall revenue due to their larger customer base.

Age Group Performance

Young Adult customers contributed the highest revenue among all age groups.

Shipping Preferences

Express shipping customers showed slightly higher average purchase amounts.


Power BI Dashboard

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

Business Recommendations

Increase Subscription Adoption

Offer exclusive discounts and loyalty benefits to encourage subscriptions.

Strengthen Customer Loyalty Programs

Reward repeat customers and encourage long-term engagement.

Optimize Discount Strategy

Monitor discount-heavy products to maintain profitability.

Promote High-Performing Products

Highlight top-rated and best-selling products in marketing campaigns.

Target High-Value Segments

Focus campaigns on high-revenue age groups and frequent purchasers.


Project Structure

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

Author

Ravi Bhatt

Aspiring Data Analyst | SQL | Python | Power BI | Machine Learning Enthusiast

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages