Skip to main content

A lightweight data cleaning and inspection toolkit.

Project description

DataMedic

A lightweight toolkit for inspecting, cleaning, organizing, and exporting datasets.
Designed for quick data quality checks, automated cleaning, and report generation.


📌 Project Overview

DataMedic 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 datamedic

Or, if you're installing from source:

pip install .

🚀 Example Usage

1. Inspecting and Cleaning a Dataset

import pandas as pd
from datamedic 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 datamedic 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 datamedic 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 datamedic 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.


If ganahan ka Jave, pwede tika himuan og logo, PyPI description, or badge-style header para mas professional tan-awon sa PyPI.

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

cleanops-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

cleanops-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file cleanops-0.1.0.tar.gz.

File metadata

  • Download URL: cleanops-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cleanops-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f2b8d0ce8fe18a72b8d7383151f5a7f27cb52fc1f3900edd63a907c2e28d9a46
MD5 add63992204827d2d42089a41c1f989c
BLAKE2b-256 5aa1cf8343cb08f90e51c6c7bd2de7af3ba86aad4514bb25c592b1aeb201d180

See more details on using hashes here.

File details

Details for the file cleanops-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for cleanops-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7428b4d5143e28363f802300ce7ed75d0ff7f812b82ddc55c1ad59676f2fcc60
MD5 3b249d660f7d46753f5233cd244d259f
BLAKE2b-256 8ad9b7594905f05226aa871811d0b5214833f02c2d68f25d337e114ba3635874

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