A market basket analysis for preprocessing data by RFM
Project description
RFM Market Basket Analysis
Overview
The MBA-by-RFM
package provides comprehensive tools for performing RFM analysis and generating market basket analysis using Apriori, FP-Growth, and ECLAT algorithms. It also includes powerful data visualizations such as network graphs, heatmaps, and RFM segment distribution charts.
Features
- RFM Analysis: Segment customers based on Recency, Frequency, and Monetary values.
- Market Basket Analysis: Generate association rules using Apriori, FP-Growth, and ECLAT algorithms.
- Data Visualization: Plot association rules as heatmaps, network diagrams, and RFM segments charts.
Installation
You can install the package directly from PyPI using pip
:
Usage
Import the Main Function: The main analysis workflow can be executed by importing the main function:
from rfm_market_basket_analysis.main import main
import pandas as pd
# Load your transactional dataset
df = pd.read_csv('transactions.csv')
# Run the main analysis
main(df)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mba_by_rfm-0.1.0.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file mba_by_rfm-0.1.0.tar.gz
.
File metadata
- Download URL: mba_by_rfm-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d0b15333bf1f0ab01d788025caa04488cb3e48463b297a0e8dc84d794e2632 |
|
MD5 | 12d87d6a31fe80016a12ecf27bb07a5c |
|
BLAKE2b-256 | 176146806d47a4a04ac149c5a2094f27fcfe68e0269fb81fe12e1d07e4865c43 |
File details
Details for the file MBA_by_RFM-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: MBA_by_RFM-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a3811c29c89fc1dd623a451dd596b81021b2b1af9bbdd7787b96d24f4129a1 |
|
MD5 | f53564768902bb2e533b145a80ec2e3a |
|
BLAKE2b-256 | 1d2b7c11278579d0f8b10f6149616a76888736c2a345af30dc9584b1596d8721 |