GitHunt
PA

pavankakarrot/rfm-retail-analytics

A complete end-to-end customer segmentation case study using RFM analysis, from raw data cleaning and star-schema design to Python automation and interactive Tableau dashboards.

πŸš€ Customer Segementation Using RFM(Recency, Frequency, Monetary)

A complete end-to-end customer segmentation case study using RFM analysis, from raw data cleaning and star-schema design to Python automation and interactive Tableau dashboards.


πŸ” Overview

  • Business Goal: Identify high-value and at-risk customers to boost retention and revenue.
  • Data: 38 k customers, €43 M sales, multiple European markets.
  • Approach:
    1. EDA & Cleaning – handle missing CustomerIDs, shipping costs, warehouse locations
    2. Star Schema – build fact & dimension tables for fast analytics
    3. RFM Scoring – recency, frequency, monetary quantiles β†’ composite score
    4. Segmentation – Champions, Loyal, Regular, At-Risk, Lost
    5. Visualization – dynamic Tableau dashboard + key screenshots
    6. Business Impact – +20 % Q4 performance, targeted retention campaigns

πŸ“ Repo Structure

β”œβ”€β”€ notebooks/ # 01_EDA_and_Cleaning.ipynb
β”‚ # 02_RFM_Scoring_and_Segmentation.ipynb
β”œβ”€β”€ data/ # raw β†’ processed β†’ final CSVs
β”œβ”€β”€ tableau/ # Retail_RFM_Dashboard.twbx
β”œβ”€β”€ screenshots/ # annotated dashboard PNGs
β”œβ”€β”€ presentation/ # Case_Study.pptx / .pdf
└── README.md # This file

🎯 Results & Next Steps

  • Key Finding: 0.6 % of customers (β€œChampions”) drive 9 % of revenue; 44 % are β€œLost” yet contribute only 14 %.
  • Action: Tailored campaigns for β€œRegular” β†’ β€œLoyal” uplift; churn-risk mitigation for β€œAt-Risk.”
  • Future: Predictive churn modeling, real-time segmentation updates, automated reporting.