Skip to main content

Python Package for RFM Analysis and Customer Segmentation

Project description





rfm

rfm: Python Package for RFM Analysis and Customer Segmentation

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)
  • NumPy (>=1.20.1)
  • matplotlib (>=3.3.4)

To install the current release (Ubuntu and Windows):

pip install rfm

Example:

# 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.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

rfm-1.0.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file rfm-1.0.3.tar.gz.

File metadata

  • Download URL: rfm-1.0.3.tar.gz
  • Upload date:
  • Size: 5.6 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/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for rfm-1.0.3.tar.gz
Algorithm Hash digest
SHA256 672e9349e5df9a381b2bbef0d6a76da826ab9766592f3b4946487969dae51e3b
MD5 5c0885cd497ad610cdee3f7e85ce3d33
BLAKE2b-256 3114b889ad2fdcaec2adce0e9d0c65e8d1f4f96653a167f334c6fb0ba899b20a

See more details on using hashes here.

File details

Details for the file rfm-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: rfm-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for rfm-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9dad38f061b4e2d2bf6de8a45710c6145f9c8e981bf9fde7d06242cc06230825
MD5 b246dd9b1ac4b406bd9d38201ba60a56
BLAKE2b-256 7775424e5dba5caf5205cd77052b02b9ebf621c924672e197be07ae368c4a1c3

See more details on using hashes here.

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