Skip to main content

A simple data preprocessing library built on top of sklearn.preprocessing

Project description

A simple data preprocessing library built on top of sklearn.preprocessing

Imports

from predpytest.processing import PreDPy
obj = PreDPy()

LabelEnc and OneHotEnc()

returns a dataframe which is label encoded/one-hot encoded for a particular column

Syntax:

    obj.LabelEnc(dataframe, columns)

    obj.OneHotEnc(dataframe, columns)

transform_missing()

replaces null values by mean/median/most_frequent

Syntax:

    obj.transform_missing(dataframe, strategy)

The strategies are: mean, median or most_frequent

stdscaler()

It transforms the data in such a manner that it has mean of 0 and standard deviation of 1

Syntax:

    obj.stdscaler(dataframe)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for predpytest, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size predpytest-0.0.5-py3-none-any.whl (2.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size predpytest-0.0.5.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page