Skip to content

Latest commit

Β 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Customer Data Analysis for Business Insights

Python Pandas NumPy Matplotlib Seaborn Jupyter

πŸš€ End-to-End Customer Analytics using Python & RFM Segmentation


πŸ“Œ Project Overview

This project focuses on analyzing customer demographics and transaction data to generate actionable business insights for a retail company. Using Python, Pandas, NumPy, Matplotlib, and Seaborn, the project performs data cleaning, exploratory data analysis (EDA), customer segmentation using Recency-Frequency-Monetary (RFM) analysis, and business visualization.

The primary objective is to identify high-value customers, improve customer retention, and support data-driven marketing decisions.


🎯 Business Problem

A retail company wants to better understand customer purchasing behavior in order to:

  • Improve customer retention
  • Increase marketing effectiveness
  • Identify high-value customers
  • Detect customer purchase patterns
  • Increase overall profitability

πŸ“‚ Dataset Information

The project uses two datasets:

Customer Master Data

  • Customer ID
  • Name
  • Gender
  • Age
  • City
  • Marital Status
  • Number of Children
  • Join Date

Customer Transaction Data

  • Customer ID
  • Transaction Date
  • Transaction Amount

Dataset Statistics

Metric Value
Customers 1,000
Transactions 23,050
Dataset Type Synthetic Retail Dataset

πŸ›  Tech Stack

  • Python
  • Pandas
  • NumPy
  • Matplotlib
  • Seaborn
  • Jupyter Notebook

πŸ“ Project Structure

Customer-Data-Analysis/
β”‚
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ Customer_Master_Data.csv
β”‚   β”œβ”€β”€ Customer_Transactions.csv
β”‚
β”œβ”€β”€ notebooks/
β”‚   └── Customer_Data_Analysis.ipynb
β”‚
β”œβ”€β”€ images/
β”‚   β”œβ”€β”€ workflow.png
β”‚   β”œβ”€β”€ dashboard.png
β”‚   β”œβ”€β”€ customer_segment.png
β”‚   β”œβ”€β”€ revenue_segment.png
β”‚   β”œβ”€β”€ pareto.png
β”‚   └── recency_vs_monetary.png
β”‚
β”œβ”€β”€ requirements.txt
β”‚
└── README.md

πŸ”„ Project Workflow

Data Collection
        β”‚
        β–Ό
Data Cleaning & Preparation
        β”‚
        β–Ό
Exploratory Data Analysis (EDA)
        β”‚
        β–Ό
RFM Calculation
        β”‚
        β–Ό
RFM Scoring
        β”‚
        β–Ό
Customer Segmentation
        β”‚
        β–Ό
Visualization
        β”‚
        β–Ό
Business Insights
        β”‚
        β–Ό
Marketing Recommendations

πŸ“ŠProject Workflow

image


πŸ“ˆ Visualizations

Customer Count by Segment

image


Revenue Contribution by Segment

image


Recency vs Monetary Analysis

image


Pareto Analysis (80/20 Rule)

image


πŸ“Š RFM Segmentation

Segment **Description
πŸ† Champion High-value customers who purchase frequently and recently
πŸ’š Loyal Customers Repeat customers with consistent engagement
🌱 Potential Loyalists Recent customers with future growth potential
⚠️ At Risk Previously active customers with declining activity
❌ Lost Inactive customers with low engagement
βšͺ Others Customers not matching key business segments

πŸ“ˆ Key Insights

βœ… Successfully cleaned and validated customer data.

βœ… Performed customer segmentation using RFM analysis.

βœ… Identified high-value customers for targeted marketing.

βœ… Visualized customer purchasing behavior.

βœ… Applied Pareto Analysis to identify top revenue contributors.

βœ… Generated business recommendations for improving customer retention.


πŸ’Ό Business Recommendations

πŸ† Champions

  • VIP Membership
  • Premium Rewards
  • Exclusive Product Launches

πŸ’š Loyal Customers

  • Loyalty Points
  • Cross-selling
  • Personalized Recommendations

🌱 Potential Loyalists

  • Welcome Offers
  • Discount Coupons
  • Email Campaigns

⚠️ At Risk

  • Re-engagement Campaigns
  • Limited Time Discounts
  • Reminder Notifications

❌ Lost Customers

  • Exit Surveys
  • Win-back Campaigns
  • Special Offers

πŸš€ Skills Demonstrated

  • Data Cleaning
  • Data Wrangling
  • Exploratory Data Analysis
  • Customer Segmentation
  • RFM Analysis
  • Data Visualization
  • Business Analytics
  • Marketing Analytics
  • Python Programming
  • Statistical Analysis

πŸ“ˆ Future Improvements

  • Interactive Power BI Dashboard
  • Customer Lifetime Value (CLV)
  • Customer Churn Prediction
  • Machine Learning Models
  • Streamlit Web Application
  • Automated Reporting

βš™οΈ Installation

Clone the repository

git clone https://github.com/yourusername/Customer-Data-Analysis.git

Move into project directory

cd Customer-Data-Analysis

Install dependencies

pip install -r requirements.txt

Run Jupyter Notebook

jupyter notebook

πŸ“š Python Libraries

pandas
numpy
matplotlib
seaborn
jupyter

⭐ Project Highlights

βœ” End-to-End Data Analytics Project

βœ” Real Business Case Study

βœ” Customer Segmentation using RFM

βœ” Professional Visualizations

βœ” Actionable Business Insights

βœ” Marketing Recommendations

βœ” GitHub Portfolio Ready

πŸ”— Project Links

LinkedIn: [(https://lnkd.in/p/dSJRkJwu)]

⭐ If you found this project useful, please consider giving it a Star!

Made with ❀️ by Gourav Mallick

About

The primary objective is to identify high-value customers, improve customer retention, and support data-driven marketing decisions.

Topics

Resources

Code of conduct

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages