Performing Customer Segmentation for an Online Retail Store using RFM Framework
Kindly create an environment and import the necessary libraries using the code below.
conda create --name <environment_name> --file requirements.txt
E-commerce has been producing unicorns across the globe for the past five years. You could just imagine how massive the data these companies are consuming day in and day out. One of the interesting data science use cases in e-commerce is understanding the customer behavior with their purchase pattern.
And so, this mini-project is focused on segmenting customers based on their purchase pattern using the RFM (Recency-Frequence-Monetary) framework. We developed a script also for reusability for future e-commerce projects that may come about.
- rfm.py - This is the actual RFM script.
- clustering_utilites.py - This is for utility functions for the clustering (planning to add more soon!)
- sample-usage.ipynb - Here's a sample jupyter notebook showing a sample usage of the script.
For sample usage, please refer to the "sample-usage.ipynb" notebook.