https://github.com/joaolcorreia/rfm-analysis
Python script (and IPython notebook) to perform RFM analysis from customer purchase history data
https://github.com/joaolcorreia/rfm-analysis
customer-analytics customer-segmentation ipython-notebook python-script rfm-analysis
Last synced: about 2 months ago
JSON representation
Python script (and IPython notebook) to perform RFM analysis from customer purchase history data
- Host: GitHub
- URL: https://github.com/joaolcorreia/rfm-analysis
- Owner: joaolcorreia
- License: apache-2.0
- Created: 2016-06-02T06:03:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T21:17:14.000Z (over 5 years ago)
- Last Synced: 2025-04-07T15:09:07.769Z (about 2 months ago)
- Topics: customer-analytics, customer-segmentation, ipython-notebook, python-script, rfm-analysis
- Language: Jupyter Notebook
- Size: 534 KB
- Stars: 270
- Watchers: 16
- Forks: 175
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://joaocorreia.io/blog/rfm-analysis-increase-sales-by-segmenting-your-customers.html), it includes instructions on how to make RFM analysis actionable and a ready to use Tableau dashboard.## Usage:
```bash
$ 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”).