redpandas-ml
Enterprise-grade ML data-preparation pipeline with integrated visual health reporting.
Installation
pip install redpandas-ml
💡 Global vs. Virtual Environments (Recommendation)
When installing redpandas-ml, it automatically installs heavy data science libraries like pandas, numpy, matplotlib, and scikit-learn.
Option A: Virtual Environment (Standard Practice)
For Mac and Linux:
python3 -m venv .venv
source .venv/bin/activate
pip install redpandas-ml
For Windows (Command Prompt & PowerShell):
python -m venv .venv
.venv\Scripts\activate
pip install redpandas-ml
- Pros: Keeps your project isolated. The heavy libraries won't conflict with other projects on your computer.
- Cons: You have to activate the environment every time you want to run your code.
Option B: Global Installation (Beginner Friendly)
# Just run this in a normal terminal without activating any environment
pip install redpandas-ml
- Pros: You can open any random folder, write
import redpandas as rp, and it works instantly. No setup required! - Cons: The dependencies are installed system-wide.
Our Recommendation: If you are just starting out or want to use redpandas-ml as a quick utility tool across many random CSV files on your computer, install it globally. If you are building a production application, use a virtual environment.
Note: The package name on PyPI is redpandas-ml, 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:
- Update
versioninpyproject.toml - Create and push a new tag:
git tag v0.3.0 git push origin v0.3.0
- GitHub Actions handles the build and trusted PyPI publishing automatically.
Metadata
Release files for redpandas-ml 0.3.4
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 |
|---|---|---|---|---|
| redpandas_ml-0.3.4.tar.gz | 14.7 kB | With provenance | Details for redpandas_ml-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| redpandas_ml-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for redpandas_ml-0.3.4-py3-none-any.whl |
Total release size: 28.4 kB
Release files / redpandas_ml-0.3.4.tar.gz
| Download URL | redpandas_ml-0.3.4.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
feda903b55ee74f9b94745465bfabe4f261a54e570eb9f2017cb5d07dec85082
|
|
BLAKE2b-256 checksum How to use checksums |
a3b00c92c0ea274eafb7177fe6bb60eaada00d22542f83b77aa8e26065f751f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2026.
Transparency logRelease files / redpandas_ml-0.3.4-py3-none-any.whl
| Download URL | redpandas_ml-0.3.4-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28a58c544a4169c22e930cf5e124e0929cfd799b51c29b1c15532ae58455654b
|
|
BLAKE2b-256 checksum How to use checksums |
43690861b4428c003fa6fdccbee65c2a96dd40177849362296ea0d5a97bddf52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2026.
Transparency logSecurity for redpandas-ml 0.3.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for redpandas_ml-0.3.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2026.
Transparency logA 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.