Skip to main content

A library for dataset quality checks, preprocessing, and report generation

Project description

HashPrep

Dataset Profiler & Debugger for Machine Learning

[!WARNING]
This repository is under active development and may not be stable.

Overview

HashPrep is a Python library for intelligent dataset profiling and debugging that acts as a comprehensive pre-training quality assurance tool for machine learning projects. Think of it as "Pandas Profiling + PyLint for datasets", designed specifically for machine learning workflows.

It catches critical dataset issues before they derail your ML pipeline, explains the problems, and suggests context-aware fixes.
If you want, HashPrep can even apply those fixes for you automatically.


Features

Key features include:

  • Intelligent Profiling: Detect missing values, skewed distributions, outliers, and data type inconsistencies.
  • ML-Specific Checks: Identify data leakage, dataset drift, class imbalance, and high-cardinality features.
  • Automated Preparation: Get suggestions for encoding, imputation, scaling, and transformations.
  • Rich Reporting: Generate statistical summaries and exportable reports (HTML/PDF/Markdown/JSON) with embedded visualizations.
  • Production-Ready Pipelines: Output reproducible cleaning and preprocessing code (fixes.py) that integrates seamlessly with ML workflows.
  • Modern Themes: Choose between "Minimal" (professional) and "Neubrutalism" (bold) report styles.

Usage

1. Quick Scan

Get a quick summary of critical issues in your terminal.

hashprep scan dataset.csv

2. Generate Report

Generate a comprehensive HTML report with visualizations.

hashprep report dataset.csv --format html --theme minimal

Options:

  • --theme: minimal (default) or neubrutalism
  • --format: html, pdf, md, or json
  • --no-visualizations: Disable plot generation for faster performance.

3. Generate Fixes

Automatically generate a Python script (dataset_fixes.py) to apply suggested fixes.

hashprep report dataset.csv --with-code

License

This project is licensed under the MIT License.


Contributing

We welcome contributions from the community to make HashPrep better!

Before you get started, please:

  • Review our CONTRIBUTING.md for detailed guidelines and setup instructions
  • Write clean, well-documented code
  • Follow best practices for the stack or component you’re working on
  • Open a pull request (PR) with a clear description of your changes and motivation

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

hashprep-0.1.0a3.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

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

hashprep-0.1.0a3-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

Details for the file hashprep-0.1.0a3.tar.gz.

File metadata

  • Download URL: hashprep-0.1.0a3.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for hashprep-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 91862be9509c6a1220aff9177f30d24ace7adbad88158ebc9213262030b7efbd
MD5 f55778c6b64211a46e1aecf42df26c63
BLAKE2b-256 80c77b3ff5b0cdea6ae388e6682649e2b2a0ae723f905209013b4f521e1d9c6a

See more details on using hashes here.

File details

Details for the file hashprep-0.1.0a3-py3-none-any.whl.

File metadata

  • Download URL: hashprep-0.1.0a3-py3-none-any.whl
  • Upload date:
  • Size: 41.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for hashprep-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 88dd96fb8718349420d26592e6afa413b7c432712ecac24373c888f221329b62
MD5 9effd2046f0521489c86a1b072c9aa8d
BLAKE2b-256 79b82e2e4c057560a179157704b448f4cf25e74b5434e754e0c9601b3f1d3604

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