Skip to content

pranotosh2/Customer-Behavior-Analysis

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 goal is to uncover insights into spending patterns, customer segmentation, product preferences, and subscription behavior to support data-driven business decisions.

📈 Power BI Dashboard

Power BI Dashboard

🗂️ Dataset Summary

  • Total Records: 3,900\
  • Total Features: 18

Key Features

Customer ID, Age, Gender, Item Purchased, Category, Purchase Amount (USD), Location, Size, Color, Season, Review Rating, Subscription Status, Shipping Type, Discount Applied, Previous Purchases, Payment Method, Frequency of Purchases

Missing Data

  • 37 missing values in the Review Rating column

🧹 Data Cleaning & Preprocessing

  • Checked null values, data types, and statistical summaries
  • Renamed columns to snake_case
  • Imputed missing Review Rating values using median per category
  • Removed redundant promo_code_used column

🛠️ Feature Engineering

  • Age grouped into Young Adult, Adult, Middle-Aged, Senior (quartiles)
  • Converted purchase frequency into numeric day intervals

🧮 SQL Analysis (MySQL)

  • Gender-wise revenue analysis
  • Discount vs high-spending customers
  • Top-rated products
  • Shipping type impact on spending
  • Subscriber vs non-subscriber comparison
  • Customer segmentation (New, Returning, Loyal)

📈 Power BI Dashboard

  • KPIs: Revenue, Average Spend, Customers
  • Customer and product segmentation
  • Discount and shipping insights

💡 Business Recommendations

  • Target loyal and subscribed customers
  • Promote subscriptions to repeat buyers
  • Focus on top-rated products
  • Optimize discounts and shipping strategies

🧰 Tools & Technologies

Python, MySQL, Power BI, Jupyter Notebook

About

Customer Behavior Analysis with Python, MySQL and Power BI for interactive Dashboard

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors