Skip to main content

Enterprise-grade ML data-preparation pipeline with integrated visual health reporting

Project description

redpandas-prep

PyPI - Version Python Version

Enterprise-grade ML data-preparation pipeline with integrated visual health reporting.

Installation

# Core only
pip install redpandas-prep

# With visualization support (recommended)
pip install "redpandas-prep[viz]"

# With all optional dependencies (seaborn, scipy, scikit-learn)
pip install "redpandas-prep[all]"

Note: The package name on PyPI is redpandas-prep, but you import it as redpandas using the alias rp:

import redpandas as rp

Quick Start (Chain Usage)

import redpandas as rp

# Full automated pipeline
X, y = (
    rp.Prep("messy_data.csv")
      .clean()
      .transform()
      .plot_report(target_column="label", save_path="report.html")
      .split_target("label")
)

Configuration (PrepConfig)

You can fully customize the pipeline behavior using the new PrepConfig class:

from redpandas.config import PrepConfig

config = PrepConfig(
    missing_threshold=0.80,
    outlier_method="iqr",
    scaling_method="robust",
    categorical_imputation="mode",
    auto_encode=True
)

prep = rp.Prep("messy_data.csv", config=config)

Diagnostics & Health Scoring

redpandas automatically diagnoses datasets upon initialization:

print(prep.diagnostics["health_score"])
print(prep.diagnostics["issues"])
print(prep.diagnostics["recommendations"])

Data Cleaning (.clean())

Step Action Config Reference
1 Remove exact duplicate rows remove_duplicates
2 Drop empty/sparse columns missing_threshold
3 Drop zero-variance columns remove_constant_columns
4 Remove statistical outliers outlier_method

Data Transformation (.transform())

Step Action Config Reference
1 Impute numeric columns numerical_imputation
2 Impute categorical columns categorical_imputation
3 Scale numeric columns scaling_method
4 One-hot encode categories auto_encode

Pipeline Persistence

Save and load the entire pipeline state:

prep.save_pipeline("pipeline.pkl")
loaded_prep = rp.Prep.load_pipeline("pipeline.pkl")

Scikit-Learn Integration

Export the exact configuration of redpandas to a scikit-learn ColumnTransformer:

sklearn_pipeline = prep.to_sklearn_pipeline()
# Use directly in GridSearchCV or other scikit-learn tools

Visualization

The .plot_report() method generates a single self-contained HTML report with zero external dependencies. The report contains:

  • Dataset Overview & Data Health Score
  • Memory Usage & Recommendations
  • Missing Value Analysis
  • Feature Distributions
  • Outliers (Box-Whisker)
  • Correlation Matrix
  • Class Balance

Publishing a New Version

To publish to PyPI using GitHub Actions:

  1. Update version in pyproject.toml
  2. Create and push a new tag:
    git tag v0.3.0
    git push origin v0.3.0
    
  3. GitHub Actions handles the build and trusted PyPI publishing automatically.

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

redpandas_ml-0.3.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

redpandas_ml-0.3.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file redpandas_ml-0.3.0.tar.gz.

File metadata

  • Download URL: redpandas_ml-0.3.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for redpandas_ml-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7e8dc0737f15ad1a7cdd5c1a79079921fcc51c7e6bf38aca7e183be0763f2044
MD5 a8f62e8bdad9111be35bf595bd4a439a
BLAKE2b-256 90aceb232b2221af94583938ea123bd54ef43047a33a12bfa5ba02bf2b25b3c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for redpandas_ml-0.3.0.tar.gz:

Publisher: publish.yml on GadeKuldeep/redPandas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file redpandas_ml-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: redpandas_ml-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for redpandas_ml-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54d117b49dc2c069af96bb17f34762ae8f8508543b127223b5df5cc6c9ed40e0
MD5 3071b4d4cfc3555fb505276afa0f04e5
BLAKE2b-256 5f032506cb47e4eb0471cbe0dccfa4a4ca0d6696d08d88cc30e40e9231f6ce45

See more details on using hashes here.

Provenance

The following attestation bundles were made for redpandas_ml-0.3.0-py3-none-any.whl:

Publisher: publish.yml on GadeKuldeep/redPandas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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