Skip to main content

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


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)

Uploaded Source

Built Distribution

MBA_by_RFM-0.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

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

Hashes for mba_by_rfm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27d0b15333bf1f0ab01d788025caa04488cb3e48463b297a0e8dc84d794e2632
MD5 12d87d6a31fe80016a12ecf27bb07a5c
BLAKE2b-256 176146806d47a4a04ac149c5a2094f27fcfe68e0269fb81fe12e1d07e4865c43

See more details on using hashes here.

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

Hashes for MBA_by_RFM-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90a3811c29c89fc1dd623a451dd596b81021b2b1af9bbdd7787b96d24f4129a1
MD5 f53564768902bb2e533b145a80ec2e3a
BLAKE2b-256 1d2b7c11278579d0f8b10f6149616a76888736c2a345af30dc9584b1596d8721

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