Skip to main content

A comprehensive data preprocessing library for Python

Project description

import pandas as pd import numpy as np from mypreprocessinglib.missing_value_handler import missing_value_handler from mypreprocessinglib.outlier_handler import outlier_handler from mypreprocessinglib.scaler import scaler from mypreprocessinglib.text_cleaner import text_cleaner from mypreprocessinglib.feature_engineer import feature_engineer from mypreprocessinglib.data_type_converter import data_type_converter from mypreprocessinglib.categorical_encoder import categorical_encoder from mypreprocessinglib.date_time_handler import date_time_handler

Example usage

data = pd.DataFrame({'A': [1, 2, np.nan, 4], 'B': [np.nan, 6, 7, 8]}) missing_handler = missing_value_handler() missing_values = missing_handler.detect_missing_values(data) print(missing_values)

Example usage

data = pd.DataFrame({'A': [1, 2, 100, 4], 'B': [5, 6, 7, 800]}) outliers = outlier_handler.detect_outliers(data) print(outliers)

Example usage

data = pd.DataFrame({'A': [1, 2, 3, 4], 'B': [4, 3, 2, 1]}) scaled_data = scaler.standardize_data(data) print(scaled_data)

Example usage

text = "This is a sample text, with punctuation and stopwords!" cleaned_text = text_cleaner.clean_text(text) print(cleaned_text)

Example usage

data = pd.DataFrame({'Feature1': [1, 2, 3], 'Feature2': [4, 5, 6]}) data_with_new_feature = feature_engineer.create_new_features(data) print(data_with_new_feature)

Example usage

data = pd.DataFrame({'A': ['1', '2', '3'], 'B': ['4', '5', '6']}) numeric_data = data_type_converter.convert_to_numeric(data, columns=['A', 'B']) print(numeric_data)

Example usage

data = pd.DataFrame({'A': ['cat', 'dog', 'bird'], 'B': ['red', 'blue', 'green']}) encoded_data = categorical_encoder.one_hot_encode(data, columns=['A', 'B']) print(encoded_data)

Example usage

data = pd.DataFrame({'Data': ['2023-01-01', '2023-02-01', '2023-03-01']}) data_with_features = date_time_handler.extract_data_features(data, column='Data') print(data_with_features)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

mypreprocessinglib-0.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mypreprocessinglib-0.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file mypreprocessinglib-0.1.tar.gz.

File metadata

  • Download URL: mypreprocessinglib-0.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for mypreprocessinglib-0.1.tar.gz
Algorithm Hash digest
SHA256 eeee339723f280a91e0d296c8a3c352ae100f06da1a69239b9fd9ea8324b56d3
MD5 25ead386604c6dc213984a658600b2f6
BLAKE2b-256 7a1afe875e90fc618399e95d766a126604a8ec0925d9f49f6e0a1eadd724bc95

See more details on using hashes here.

File details

Details for the file mypreprocessinglib-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mypreprocessinglib-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93bfeb488b67e564f4072b1081d0a99843471388d088c129d1ce7e3a5497529f
MD5 8752dc4a8916acdc062197a936ce2038
BLAKE2b-256 9fc794d4df4508405186d52d431e0a4be4ae2cb634c3cb055b697ea751ec27f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page