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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rfm-1.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 fcc59839feff68458bf8ddd439324757883d4f7cdcd5d8039c7aa4154836d1fd
MD5 30f32cdc51d7a6ebcb3fc146111d1d00
BLAKE2b-256 93aff661746a9d1ba49a9a8abc63b98c729013be171b5110c486ff3ca197779a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rfm-1.0.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 45d14ae7dbe73d679927717f2e95b43e9ce1880e0926cf7430880ad637def1a6
MD5 8e68629ae397e3d140b31d8f93b9e414
BLAKE2b-256 887621b5b4275611561ee62accc3103ea5f6069c04d866b2c3e70d551b5430e2

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