Python script (and IPython notebook) to perform RFM analysis from customer purchase history data
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.
$ python RFM-analysis.py -i sample-orders.csv -o rfm-segments.csv -d "2014-04-01"