A lightweight data cleaning and inspection toolkit.
Project description
CleanOps
A lightweight toolkit for inspecting, cleaning, organizing, and exporting datasets.
Designed for quick data quality checks, automated cleaning, and report generation.
📌 Project Overview
CleanOps provides a simple workflow for handling messy datasets.
It includes tools for:
- Detecting missing values
- Identifying duplicate rows
- Detecting outliers (IQR-based or statistical)
- Cleaning + automatic fixing
- Organizing dataset columns and rows
- Exporting cleaned data (CSV / Excel / JSON)
- Generating dataset health reports
- Running complete pipelines combining cleaning, exporting, and reporting
The goal is to make data preprocessing easier and more consistent.
📦 Installation
Install via pip:
pip install cleanops
Or, if you're installing from source:
pip install .
🚀 Example Usage
1. Inspecting and Cleaning a Dataset
import pandas as pd
from cleanops import DataCleaner
df = pd.read_csv("sample.csv")
cleaner = DataCleaner(df)
# Diagnose issues
issues = cleaner.diagnose()
print("Issues found:", issues)
# Apply cleaning (missing, duplicates, outliers)
cleaned_df = cleaner.treat()
print(cleaned_df.head())
2. Exporting Cleaned Data
from cleanops import DataExporter
exporter = DataExporter(cleaned_df)
exporter.to_csv("output.csv")
exporter.to_excel("output.xlsx")
exporter.to_json("output.json")
3. Generating a Data Report
from cleanops import ReportGenerator
reporter = ReportGenerator(cleaned_df)
report = reporter.report()
score = reporter.health_score()
print("Report:", report)
print("Health Score:", score)
reporter.export_report("dataset_report.txt")
4. Running a Full Data Pipeline
from cleanops import DataCleaner, DataOutput, DataPipeline
import pandas as pd
df = pd.read_csv("sample.csv")
cleaner = DataCleaner(df)
output = DataOutput(df)
pipeline = DataPipeline(
doctor=cleaner,
exporter=output.exporter,
reporter=output.reporter
)
pipeline.run()
📄 License
This project is released under the MIT License.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cleanops-0.1.1.tar.gz.
File metadata
- Download URL: cleanops-0.1.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e23e97fba8a4c094d9bc14a00e1323a0a924e2c97aaebb0d03c24a785655ab3a
|
|
| MD5 |
e18dd3c59f862e129cf6c9977b08942d
|
|
| BLAKE2b-256 |
1c0c68656ca6a266c415c051027ab924a356ed2354e16cbe113f7391236f9075
|
File details
Details for the file cleanops-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cleanops-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd7805998b47c82d29181f92d01b7abb219ed9b53757cc617543f6c86b1a0214
|
|
| MD5 |
ea76c6e51eb3034d03d8874f7da2cb04
|
|
| BLAKE2b-256 |
536ef75b27233f5fa5381852d2128b02d33f95ac3acdc286d69cba27bfaa6f89
|