rfm-package 0.1.0

Creator: railscoderz

Last updated:

0 purchases

rfm-package 0.1.0 Image
rfm-package 0.1.0 Images

Languages

Categories

Add to Cart

Description:

rfmpackage 0.1.0

RFM Package
A Python package for Recency, Frequency, Monetary model (RFM), which is an analysis is a behavior based technique used
to segment customers by examining their transaction history.

how recently a customer has purchased (Recency)
how often they purchase (Frequency)
how much the customer spends (Monetary)

License

Free software: MIT license
Documentation: https://rfm-package.readthedocs.io.

Installation
You can install the package using
pip install rfm_package


Usage Test
orders = pd.read_csv(r'C:/Users/Admin/Desktop/RFM-Package/rfm_package/data/orders.csv', parse_dates = ['order_date'])

columns = create_rfm_columns(orders, "customer_id", "order_date", "revenue")
print(columns)

scaled = scale_rfm_columns(columns)
print(scaled)

plot_rfm(scaled)

scores = rfm_scores(scaled)
print(rfm_scores(scaled))

named_segments = give_names_to_segments(scores)
print(named_segments)

dist = segments_distribution(named_segments)
print(dist)

visualize_segments(dist)


Credits
This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage
=======
History
0.1.0 (2022-12-15)

First release on PyPI.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.