Skip to content
Python script (and IPython notebook) to perform RFM analysis from customer purchase history data
Jupyter Notebook Python
Branch: master
Clone or download
Pull request Compare This branch is 1 commit behind joaolcorreia:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
RFM Analysis.ipynb
RFM-analysis.py
rfm-segmentation.csv
rfm-table.csv
sample-orders.csv

README.md

RFM-analysis

RFM analysis is a simple python script (and IPython notebook) to perform RFM analysis from customer purchase history data.

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”).
You can’t perform that action at this time.