Skip to main content

SmartClean

An intelligent Python library for automated data cleaning with profiling, preprocessing, and detailed reporting.

SmartClean simplifies the data cleaning process by automatically identifying and handling common data quality issues such as missing values, duplicate records, and outliers. It generates comprehensive profiling reports before and after cleaning, making datasets ready for analysis and machine learning.


Features

  • Automated missing value detection and handling
  • Duplicate row detection and removal
  • Outlier detection using the IQR method
  • Automatic data profiling
  • Before and after cleaning reports
  • Configurable cleaning pipeline
  • Modular and extensible architecture
  • Simple and intuitive API
  • Open-source and developer friendly

Installation

Clone the repository:

git clone https://github.com/yourusername/SmartClean.git

cd SmartClean

Install dependencies:

pip install -r requirements.txt

Quick Start

import pandas as pd
from smartclean import Cleaner

# Load dataset
df = pd.read_csv("data/raw/Kaggle/1.csv")

# Initialize SmartClean
cleaner = Cleaner()

# Clean dataset
result = cleaner.clean(df)

print(result.cleaned_df.head())
print(result.report)

Example Output

========== Missing Value Cleaning ==========

[OK] Column: Age              | Missing: 177 | Strategy: mean
[OK] Column: Cabin            | Missing: 687 | Strategy: most_frequent
[OK] Column: Embarked         | Missing: 2   | Strategy: most_frequent

========== Duplicate Cleaning ==========

[OK] No duplicate rows found.

========== Outlier Cleaning ==========

[OK] Outlier Values Capped : 441

CleaningResult(rows=891, columns=12)

Project Structure

SmartClean/
│
├── smartclean/
│   ├── cleaning/
│   ├── config/
│   ├── core/
│   ├── handlers/
│   ├── utils/
│   ├── cleaner.py
│   ├── result.py
│   └── __init__.py
│
├── example/
│   └── demo.py
│
├── data/
│
├── reports/
│
├── README.md
└── requirements.txt

Cleaning Pipeline

Dataset
    │
    ▼
Data Profiling
    │
    ▼
Missing Value Handling
    │
    ▼
Duplicate Removal
    │
    ▼
Outlier Detection
    │
    ▼
Updated Profiling
    │
    ▼
Cleaning Report
    │
    ▼
Clean Dataset

Current Cleaning Capabilities

Missing Values

  • Mean imputation
  • Median imputation
  • Most frequent value imputation
  • Drop columns with excessive missing values

Duplicates

  • Detect duplicate rows
  • Remove duplicate records

Outliers

  • IQR-based outlier detection
  • Outlier capping
  • Outlier removal

Output

SmartClean returns a CleaningResult object.

result = Cleaner().clean(df)

result.cleaned_df
result.before_profile
result.after_profile
result.report

Roadmap

Version 1.0

  • Data profiling
  • Missing value handling
  • Duplicate removal
  • Outlier detection
  • Cleaning reports

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartclean_ai-1.0.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

smartclean_ai-1.0.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file smartclean_ai-1.0.1.tar.gz.

File metadata

  • Download URL: smartclean_ai-1.0.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for smartclean_ai-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fbcfd79fce812016d80f7f456f915cfd1ccc7874e8c1b8f6bf9fd594ae705389
MD5 f279ad08ab92002c7bd2a930640a50af
BLAKE2b-256 e7044d63707f593a625eeae44b527b811dd76a0a525fb7d031d530596efd2de1

See more details on using hashes here.

File details

Details for the file smartclean_ai-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: smartclean_ai-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for smartclean_ai-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90c1293c82fd2c9b79ac2b78523bfe82ff5a449d3fa9851d04db206af025a6f5
MD5 f861a559a794eebfa18fddd15bf70531
BLAKE2b-256 04dd07e6300ee4654c7052011f6db130b48b4137f131253e85597907caa4240c

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