Skip to main content

A customer segmentation package for preprocessing data

Project description

Customer Segmentation Package

Overview

This data analysis package provides comprehensive tools for preprocessing, feature engineering, clustering, and feature selection/reduction of data. It streamlines and automates common data analysis tasks, making it easier to prepare datasets for further analysis and machine learning. The package includes functionalities for validating data structure, handling missing values, removing outliers, scaling data, and much more.

Features

  • Data Preprocessing

    • Data Structure Validation: Ensures that the dataset meets expected structural requirements.
    • Null Value Removal: Identifies and removes or imputes missing values.
    • Outlier Removal: Detects and removes outliers from the dataset.
    • Data Scaling: Standardizes or normalizes data for consistent analysis.
  • Feature Engineering

    • RFM (Recency, Frequency, Monetary) Calculation: Computes RFM metrics for customer segmentation and analysis.
    • Velocity Calculation: Measures the rate of change in data over time.
    • Growth Calculation: Computes the growth metrics across data points.
  • Feature Selection and Reduction

    • Information Gain Calculation: Evaluates the importance of features in predicting target variables.
    • WOE (Weight of Evidence) and IV (Information Value) Calculation: Assesses the predictive power of categorical features.
    • PCA (Principal Component Analysis): Reduces dimensionality of data and allows for inverse transformation to original space.
  • Advanced Clustering

    • Best Clustering Method Selection: Provides various clustering algorithms (e.g., KMeans, DBSCAN, EM, MeanShift, Agglomerative) and selects the most suitable one based on data characteristics.

Requirements

To use this package, you need to have the following installed:

  • Python 3.7 or higher
  • The following Python libraries:
    • pandas
    • numpy
    • scikit-learn
    • scipy
    • matplotlib
    • seaborn
    • statsmodels

You can install these dependencies using:

pip install -r requirements.txt

To import the package,you can use the following format:

from customer_segmentation_clustering.main import main

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

custmr_segmentation-0.1.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

Custmr_segmentation-0.1.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file custmr_segmentation-0.1.1.tar.gz.

File metadata

  • Download URL: custmr_segmentation-0.1.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for custmr_segmentation-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d607c2c87f1e6916a6247a1b66700a9c03d3095fc555451b310b17f9a7a392b
MD5 2463d23e118396267854f280cbda90a9
BLAKE2b-256 31b3178846c8c10b7c36e0b3c95217993e8359035d1e3acf80afa76cfab86984

See more details on using hashes here.

File details

Details for the file Custmr_segmentation-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Custmr_segmentation-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa5dbb046abb994b370f704190b0d1453813062fd8406f2992b8e43a22dcff35
MD5 a2983d37667de2b6bb75940d80cb8dd5
BLAKE2b-256 dcc0e0452261450fa77105e746d92388a11fbcf9173c21146f0b5a1c880c6e7b

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