CleanPy - Automated Data Cleaning
CleanPy is an automated data-cleaning package that helps users handle missing values, remove duplicates, fix formatting issues, and standardize datasets effortlessly.
Features
Handle Missing Values: Fill or remove missing values using different strategies.
Remove Duplicates: Detect and eliminate duplicate rows.
Fix Data Formatting: Standardize text, dates, and column names.
Auto-detect Cleaning Strategies: Get suggested fixes for common data issues.
Support for Multiple Formats: Works with CSV, Excel, JSON, Parquet, and more.
Command-line Interface (CLI): Clean data directly from the terminal.
Installation
You can install CleanPy from PyPI using:
pip install cleanpy
Usage
Command-line Interface (CLI)
To clean a dataset from the command line:
cleanpy data.csv --auto-clean -o cleaned_data.csv
Available CLI options:
cleanpy input_file [options]
Options: --auto-clean Apply recommended cleaning strategies automatically. --fill-missing [strategy] Fill missing values (mean, median, mode, etc.). --drop-duplicates Remove duplicate rows. --fix-datatypes Automatically fix data types. --normalize-text Normalize text columns. --format-dates Convert dates to ISO format. --standardize-columns Standardize column names. -o, --output [file] Save cleaned data to a file.
Python API
You can also use CleanPy in your Python scripts:
from cleanpy.core import CleanDF
df = CleanDF("data.csv") df.auto_clean() df.save("cleaned_data.csv")
Supported File Formats
CSV (.csv)
Excel (.xls, .xlsx)
JSON (.json)
Pickle (.pkl)
Parquet (.parquet)
Contributing
We welcome contributions! Feel free to fork the repository, make changes, and submit a pull request.
License
This project is licensed under the MIT License.
Metadata
Release files for dataclense 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dataclense-0.1.0.tar.gz | 2.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dataclense-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 kB
Release files / dataclense-0.1.0.tar.gz
| Download URL | dataclense-0.1.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c1ae6f62b07253fb6bccb29cb4a16cdf2c5058d8992bdff0408321e9a993709
|
|
BLAKE2b-256 checksum How to use checksums |
ceede3ea251653af01259ed40183ed41945dd9bd954b791a84b947a237e93158
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / dataclense-0.1.0-py3-none-any.whl
| Download URL | dataclense-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c62f17c5dc1a88c0acd3e0c3d89e85e26983580024b410460c527403d50b2035
|
|
BLAKE2b-256 checksum How to use checksums |
00fb859ce8ad2c01f241f294e8aebd5c0101e5c7fe707c613fc7dd2b8dc0468b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for dataclense 0.1.0
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.