Data Preprocessing Library - Aryan Sakhala
This library provides a set of functions for preprocessing data in pandas DataFrames.
Installation You can install this package using pip:
pip install pyProcessAutom
Usage
To use this library, simply import the DataPreprocessor class from the data_preprocess module and instantiate it with a pandas DataFrame. You can then call various methods of the DataPreprocessor class to preprocess the data.
Here's an example of how to use this library:
import pandas as pd
from auto_preprocess.data_preprocess import DataPreprocessor
# Load data into a pandas DataFrame
df = pd.read_csv("my_data.csv")
# Preprocess the data using the DataPreprocessor class
preprocessor = DataPreprocessor(df)
preprocessor.remove_outliers()
preprocessor.scale(scaler_type='standard')
preprocessor.label_encode()
preprocessor.impute(method='mean')
preprocessor.drop()
preprocessed_df = preprocessor.df
Use the preprocessed data as needed
Functions This library provides the following functions for preprocessing data:
- remove_outliers(): Removes outliers from all numeric columns in the DataFrame.
- scale(scaler_type): Scales all numeric columns in the DataFrame using either a standard scaler or a min-max scaler. [Arguments = 'standard','minmax']
- label_encode(): Encodes all columns with binary categories using label encoding.
- impute(method): Fills all columns with either the mean, median, or mode, as specified by the user.
- drop(): Drops all columns with more than 30% NaN values from the DataFrame. License
This project is licensed under the MIT License - see the LICENSE.txt file for details.
Metadata
Release files for pyProcessAutom 1.4.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyProcessAutom-1.4.9.tar.gz | 2.8 kB | Without provenance | Details for pyProcessAutom-1.4.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyProcessAutom-1.4.9-py3-none-any.whl | Python 3 | none | any | Details for pyProcessAutom-1.4.9-py3-none-any.whl |
Total release size: 5.7 kB
Release files / pyProcessAutom-1.4.9.tar.gz
| Download URL | pyProcessAutom-1.4.9.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c17be085bc1047de53df4db03a776c4ae3a46bbe69cc4b27c9acd01bddcb17b8
|
|
BLAKE2b-256 checksum How to use checksums |
a7570113a59884dead608eafa240b861d54c5c0c90333b8b6881b68e97cf17d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Release files / pyProcessAutom-1.4.9-py3-none-any.whl
| Download URL | pyProcessAutom-1.4.9-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a8ad1d68999174babda7642b31e216994115e9304bf294b92480a531ec23ddc
|
|
BLAKE2b-256 checksum How to use checksums |
cd813ba99d5bd8f93a1bba7ffc4b20d7176f134ded055f7d64369ede52b4eb2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Security for pyProcessAutom 1.4.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.