• Stars
    star
    263
  • Rank 155,624 (Top 4 %)
  • Language
    Jupyter Notebook
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python script (and IPython notebook) to perform RFM analysis from customer purchase history data

RFM-analysis

RFM analysis is a simple python script (and IPython notebook) to perform RFM analysis from customer purchase history data. Please read the blog post on RFM analysis, it includes instructions on how to make RFM analysis actionable and a ready to use Tableau dashboard.

Usage:

$ python RFM-analysis.py -i sample-orders.csv -o rfm-segments.csv -d "2014-04-01"
  • orders file (-i sample-orders.csv)
  • output file with the RFM segmentation (-o rfm-segmenta.csv)
  • maximum date of your orders table (-d “YYYY-mm-dd”).