Skip to main content

AutoCleanSS: Your Automated Data Cleaning Companion

Python Version License

An advanced and automated data cleaning toolkit for Python, designed to streamline your data preprocessing workflow with intelligent imputation, outlier handling, and comprehensive reporting.

✨ Key Features

  • Automated Cleaning Pipeline: Orchestrates a complete data cleaning process from duplicates to outliers.
  • Duplicate Handling: Automatically identifies and removes duplicate rows to ensure data uniqueness.
  • Intelligent Missing Value Imputation: Supports various strategies including mean, median, mode, and knn imputation, tailored for numerical and categorical data. Special handling for datetime missing values.
  • Robust Outlier Treatment: Employs the Interquartile Range (IQR) method to detect and cap outliers in numerical columns, preventing skewness and improving model performance.
  • Automatic Data Type Inference: Dynamically infers and converts appropriate data types (e.g., object to numeric, object to datetime) for better data integrity.
  • Comprehensive HTML Reports: Generates detailed, interactive HTML reports summarizing cleaning actions, before/after statistics, and visual distribution plots for key numerical features.
  • Seamless Pandas Integration: Built to work effortlessly with Pandas DataFrames, making it intuitive for data scientists and analysts.

📦 Installation

To get started with AutoCleanSS, clone the repository and install it using pip:

  1. Install dependencies and the package: It's recommended to install in a virtual environment.
    pip install autocleanss
    

🚀 Usage

Using autocleanss is straightforward. Here's a quick example:

import pandas as pd
from autoclean import AutoClean

# 1. Load your messy data into a Pandas DataFrame
#    (Replace with your actual data loading, e.g., pd.read_csv('your_data.csv'))
data = {
    'ID': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
    'Feature_A': [10.1, 11.2, None, 13.4, 14.5, 100.0, 16.7, 17.8, 10.1, 19.9],
    'Feature_B': ['A', 'B', 'A', 'C', 'B', 'D', 'A', 'A', 'A', None],
    'Feature_C': ['01-01-2023', '02-01-2023', '03-01-2023', '04-01-2023', '05-01-2023', None, '07-01-2023', '08-01-2023', '01-01-2023', '09-01-2023'],
    'Feature_D': [5, 6, 5, 7, 8, 9, 10, 11, 5, 12]
}
df = pd.DataFrame(data)

print("--- Original DataFrame ---")
print(df)
print("\n" + "="*40 + "\n")

# 2. Initialize the AutoClean object with your DataFrame
#    You can specify an imputation strategy: 'mean', 'median', 'mode', or 'knn'
cleaner = AutoClean(df, imputation_strategy='knn')

# 3. Run the cleaning process
cleaned_df = cleaner.clean()

print("--- Cleaned DataFrame ---")
print(cleaned_df)
print("\n" + "="*40 + "\n")

# 4. Generate a comprehensive HTML report
#    The report will be saved as 'cleaning_report.html' in your current directory.
cleaner.generate_report(output_path='my_cleaning_report.html')
print("✅ Cleaning report saved to 'my_cleaning_report.html'")

This will produce a my_cleaning_report.html file in your project directory, detailing all the cleaning steps and showing the impact on your data.

You can use

from IPython.display import HTML
HTML(filename='cleaning_report.html')

In your notebook to visualize the report.

Metadata

Release files for autocleanss 0.1.3

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

Source distribution (sdist)

Source distribution for autocleanss 0.1.3
File Size Uploaded Provenance
autocleanss-0.1.3.tar.gz 9.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 18.8 kB

Release files / autocleanss-0.1.3.tar.gz

Download URL autocleanss-0.1.3.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
48c2eb9ee5cc506b7823401895ddf2ff7b09acdee22dd339ef650b94358a543b
BLAKE2b-256 checksum
How to use checksums
1bbce2fc5cd7643440e86f0ca68184b1a4d7e1723dbf9d784c359f8635418a31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / autocleanss-0.1.3-py3-none-any.whl

Download URL autocleanss-0.1.3-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0df64ec911bbfb78ecc5eeee0d8d401acb0cab2cd95d162581ec8b9cf9cc41be
BLAKE2b-256 checksum
How to use checksums
9ee23226034db5004c82089cca2d47ae0f35e489fcf0d2aa87bfe1cf8e2119d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Security for autocleanss 0.1.3

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