Skip to main content

Python Package for RFM Analysis and Customer Segmentation

Project description





PyPI Latest Release PyPI Package Status License

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rfm-1.0.8.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

rfm-1.0.8-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page