Python Package for RFM Analysis and Customer Segmentation
Project description
rfm
rfm: Python Package for RFM Analysis and Customer Segmentation
Info
rfm is a Python package that provides recency, frequency, monetary analysis results for a certain transactional dataset within a snap. Its flexible structure and multiple functionalities provide easy and intuitive approach to RFM Analysis in an automated fashion. It aims to be a ready-made python package with high-level and quick prototyping. On practical hand, real world data is easily suited and adapted by the package. Additionally, it can make colorful, intuitive graphs using a matplotlib backend without breaking a sweat.
Installation
Dependencies
- Python (>=3.7)
- Pandas (>=1.2.4)
- NumPy (>=1.20.1)
- matplotlib (>=3.3.4)
To install the current release (Ubuntu and Windows):
$ pip install rfm
Usage
# predefine a transaction dataset as df
>>> from rfm import RFM
>>> r = RFM(df, customer_id='CustomerID', transaction_date='InvoiceDate', amount='Amount')
>>> r.segment_distribution()
Documentation
The official documentation is hosted on :
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rfm-1.0.8.tar.gz
.
File metadata
- Download URL: rfm-1.0.8.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/4.11.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bee4561a735e0c0588bb58a1907d4e1c6021aade5a1aea057dc4d7aef4884997 |
|
MD5 | 991534694e7abf433b33432318a1c4a4 |
|
BLAKE2b-256 | 2e880a04bdf4713598d8b7fe41fcfdc8a3bd3287050cef5d944e2f82ef14e456 |
File details
Details for the file rfm-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: rfm-1.0.8-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/4.11.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 818351d1a26a96f318ed095f5eb41e70b961d52d24b43e377652118ed0615f92 |
|
MD5 | 671baa8b62e000d88e6019196c1960aa |
|
BLAKE2b-256 | d4c21420c58f7c7ce901ce7a4f181e32dd49c9daf5ea9e34bfcb327ca04a6757 |