Skip to main content

RDATAPP: Recoded Data Preprocessing Library

PyPI version Python versions License

Overview

RDATAPP is a comprehensive data preprocessing library designed to handle various data cleaning and transformation tasks. This library includes classes and methods for text cleaning, missing value imputation, one-hot encoding, outlier detection, feature engineering, and more.

Features

  • Text Cleaning: Convert text to lowercase, remove punctuation and stopwords, and lemmatize words.
  • Missing Value Handling: Impute missing values using mean, median, or a constant value. Alternatively, delete rows with missing values.
  • Encoding: One-hot encode and label encode categorical columns.
  • Outlier Detection: Detect and remove outliers using the Interquartile Range (IQR) method.
  • Scaling: Apply Min-Max scaling and standard scaling to numerical columns.
  • Feature Engineering: Create new features by applying functions to existing columns.
  • Date-Time Handling: Convert columns to datetime format and extract date parts like year, month, and day.

Installation

You can install RDATAPP from PyPI using pip:

pip install rdatapp

Usage

Below are examples of how to use the different classes and methods provided by RDATAPP.

Text Cleaning

from rdatapp.text_cleaning import TextCleaner

text_cleaner = TextCleaner()
cleaned_text = text_cleaner.clean_text("This is a Sample TEXT, with Punctuation!")
print(cleaned_text)

Missing Value Handling

import pandas as pd
from rdatapp.missing_value_handler import MissingValueHandler

df = pd.DataFrame({'A': [1, 2, None, 4]})
df = MissingValueHandler.impute_mean(df, 'A')
print(df)

Encoding

import pandas as pd
from rdatapp.categorical_encoder import CategoricalEncoder

df = pd.DataFrame({'Category': ['A', 'B', 'A', 'C']})
df = CategoricalEncoder.one_hot_encode(df, 'Category')
print(df)

Outlier Detection

import pandas as pd
from rdatapp.outlier_handler import OutlierHandler

df = pd.DataFrame({'Values': [1, 2, 3, 4, 100]})
df = OutlierHandler.iqr_outlier_detection(df, 'Values')
print(df)

Scaling

import pandas as pd
from rdatapp.scaler import Scaler

df = pd.DataFrame({'Values': [1, 2, 3, 4, 5]})
df = Scaler.min_max_scale(df, 'Values')
print(df)

Feature Engineering

import pandas as pd
from rdatapp.feature_engineer import FeatureEngineer

df = pd.DataFrame({'Values': [1, 2, 3, 4, 5]})
df = FeatureEngineer.create_new_feature(df, 'Values', lambda x: x**2)
print(df)

Date-Time Handling

import pandas as pd
from rdatapp.date_time_handler import DateTimeHandler

df = pd.DataFrame({'Date': ['2021-01-01', '2021-02-01', '2021-03-01']})
df = DateTimeHandler.to_datetime(df, 'Date')
df = DateTimeHandler.extract_date_parts(df, 'Date')
print(df)

Authors

License

This project is not licensed. Feel free to use.

Contributing

We welcome contributions! Please contact us via E-mail addresses.

Acknowledgments

Special thanks to the instructors who provided guidance and support throughout the development of this project.


For any issues, please contact the authors or open an issue on GitHub.

Metadata

Release files for rdatapp 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rdatapp 1.0
File Size Uploaded Provenance
rdatapp-1.0.tar.gz 7.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for rdatapp 1.0
File Interpreter ABI Platform
rdatapp-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / rdatapp-1.0.tar.gz

Download URL rdatapp-1.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
34f86ea0ca0ce8330160afbf44890a6b6569cb0efe90b87f09f6449f3f12b850
BLAKE2b-256 checksum
How to use checksums
31c5a463609a00fc960422e147d5d1b48b1bf6eb8d9c0c01969e5376136402ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.5

Release files / rdatapp-1.0-py3-none-any.whl

Download URL rdatapp-1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f183b8ac9d842e7342ccad9d71e65a48d17ded981400198a5c0c20cb92784bd
BLAKE2b-256 checksum
How to use checksums
6695f7ab2b243e69dedf41fe1e085e0757b4ba6f81c3afd45cba561a0f6b32da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.5

Security for rdatapp 1.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page