Skip to main content

RFM Modeling Package for modeling Consumer behavior.

Project description

CRM-RFM Modeling v1.0.3

pip install crm-rfm-modeling

This package should be used with the intent of a CRM analysis in order to score their CRM dataset with the well known method of RFM. Methodology derived from the following paper: https://link.springer.com/article/10.1057/palgrave.jdm.3240019

from crm_rfm_modeling import rfm
from crm_rfm_modeling.rfm import RFM

model = RFM()
#or
model = rfm.RFM()

RFM (Recency - Frequency - Monetary):

  • RFM Package used to model and score CRM data with the following scoring methods: Quintile Scoring, Mean Scoring, and Median Scoring. The package allows custom scoring on each variable related to Recency, Frequency, and Monetary. It is important to format the data when fitting the model depending on the dataset type listed below:

    Customer/User Level CRM Dataset:

    • The dataset should contain the Customer IDs to score against as an index. The Recency, Frequency, and Monetary columns should be labeled as so in order to score the variables and customers correctly.

    Transactional CRM Dataset:

    • The dataset should have a list of Cutomer IDs associated with each transaction as well as a date that can be interpreted by Pythons datetime package and a column associated the value of the transaction. The columns should be in order as so. There is no need to set the Customer IDs as the index as it will be set automatically during the scoring.

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

crm-rfm-modeling-1.0.4.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file crm-rfm-modeling-1.0.4.tar.gz.

File metadata

  • Download URL: crm-rfm-modeling-1.0.4.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for crm-rfm-modeling-1.0.4.tar.gz
Algorithm Hash digest
SHA256 a4f737db0e4d2f7295bf76d04b5963dd425e24f3478599b0ade3f63da896804f
MD5 7f76a44ae1ffa969cdc77ee4f8daa8b0
BLAKE2b-256 351f93f72668400dffd7c1000ee6a74d7116569f15f1f07dc4cf153fec1fa490

See more details on using hashes here.

Supported by

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