Skip to main content

No project description provided

Project description

preprocessutils

This packages has data processing tools which can be used to make developer work easier

Installation

pip install preprocessutils

Usage

from preprocessutils import fix_imbalance

OVER-SAMPLE

balanced_dataframe = fix_imbalance(data=df, target=target, threshold=10.0, oversample=True)

OVER-SAMPLE SMOTE

balanced_dataframe = fix_imbalance(data=df, target=target, threshold=10.0, smote=True)

UNDER-SAMPLE

balanced_dataframe = fix_imbalance(data=df, target=target, threshold=10.0, oversample=False)

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

preprocessutils-1.0.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

preprocessutils-1.0.1-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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