Skip to content

About

This project analyzes customer shopping behavior using Python, SQL, and Power BI to uncover insights into purchasing patterns, customer segmentation, and revenue trends. The workflow includes data cleaning, feature engineering, SQL-based business analysis, and an interactive dashboard for decision-making.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

📊 Customer Shopping Behavior Analysis

📌 Project Overview

This project focuses on analyzing customer shopping behavior using transactional data (~3,900 records) to identify patterns in spending, customer segments, product performance, and subscription behavior.

The goal is to derive data-driven insights that help improve business strategy, marketing decisions, and customer engagement.


🧰 Tech Stack

  • Python (Pandas, NumPy) → Data Cleaning & EDA
  • SQL (PostgreSQL) → Business Query Analysis
  • Power BI → Data Visualization & Dashboard
  • Excel (supporting) → Data inspection

📂 Dataset Summary

  • Total Records: 3,900

  • Columns: 18

  • Key Features:

    • Customer demographics (Age, Gender, Location)
    • Purchase details (Category, Amount, Season)
    • Behavior data (Discounts, Frequency, Ratings)
  • Data Issue:

    • Missing values in Review Rating column (~37 rows)

🧹 Data Preprocessing (Python)

  • Loaded dataset using pandas

  • Handled missing values using median imputation (category-wise)

  • Standardized column names (snake_case)

  • Feature Engineering:

    • Created age_group
    • Derived purchase_frequency_days
  • Removed redundant column (promo_code_used)

  • Exported cleaned data into PostgreSQL for SQL analysis


🧠 SQL Analysis (Business Insights)

Performed multiple analytical queries to answer key business questions:

🔹 Revenue Analysis

  • Compared revenue by gender → Male customers contributed significantly higher revenue (~157K vs ~75K) (Page 3)

🔹 Customer Behavior

  • Identified high-spending customers using discounts

  • Segmented customers into:

    • New
    • Returning
    • Loyal (Majority were loyal users) (Page 5)

🔹 Product Insights

  • Top-rated products: Gloves, Sandals, Boots (Page 4)
  • Top-selling products per category (Page 6)

🔹 Business Metrics

  • Subscription vs Non-subscription analysis:

    • Non-subscribers generated higher total revenue (Page 4)
  • Shipping type comparison:

    • Express shipping users had slightly higher average spend (Page 4)

🔹 Advanced Analysis

  • Discount dependency by product
  • Repeat buyers vs subscription likelihood
  • Revenue contribution by age group (Page 6)

📊 Power BI Dashboard

Built an interactive dashboard to visualize insights:

Key Metrics:

  • Total Customers: 3.9K
  • Average Purchase Amount: $59.76
  • Average Rating: 3.75

Dashboard Features:

  • Revenue by category
  • Sales distribution
  • Customer segmentation (subscription-based)
  • Revenue by age group
  • Interactive filters (Gender, Category, Shipping Type)

👉 The dashboard provides a 360° view of customer behavior and business performance (Page 7)


💡 Key Insights

  • Loyal customers form the majority → strong retention base
  • Discounts drive purchases but require optimization
  • Certain products are highly discount-dependent
  • Younger age groups contribute higher revenue
  • Express shipping correlates with higher spending

🚀 Business Recommendations

  • Improve subscription offerings with exclusive benefits
  • Introduce loyalty programs for repeat customers
  • Optimize discount strategies to maintain margins
  • Promote top-rated & best-selling products
  • Target high-value customer segments for marketing

📎 Project Outcome

This project demonstrates:

  • End-to-end data analytics workflow

  • Strong skills in SQL + Python + Power BI

  • Ability to convert raw data into actionable business insights

  • Cohort analysis

  • Storytelling narrative (very important for Product/Data roles)

About

This project analyzes customer shopping behavior using Python, SQL, and Power BI to uncover insights into purchasing patterns, customer segmentation, and revenue trends. The workflow includes data cleaning, feature engineering, SQL-based business analysis, and an interactive dashboard for decision-making.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors