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.6.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

rfm-1.0.6-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rfm-1.0.6.tar.gz
  • Upload date:
  • Size: 5.7 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

Hashes for rfm-1.0.6.tar.gz
Algorithm Hash digest
SHA256 0bc56ae3f8a4d96bbf79b44856db25ba5f7288a7af5377a9aaf52b44708b79b7
MD5 a2f42b88cef7eccf8845f15ff738980c
BLAKE2b-256 0176ab317bdf0a230b4da6f4f5fed4ce40b3ad7804c6f43eaba5b4f4ef8db66c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rfm-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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

Hashes for rfm-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fc10cc9d2a00adb6909ac5ad8e83ee8751db7a050b7d3ad75dd603537ab416cd
MD5 7f5a4cd55ec8b398c45a73045365bfb4
BLAKE2b-256 282f547ca38a06c8811a76f0632e47f53f186b6f55e0fdf29b05e083f3fc0cf4

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