An automated data-cleaning package that handles missing values, duplicates, and formatting issues.
Project description
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.
Project details
Release history Release notifications | RSS feed
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 dataclense-0.1.0.tar.gz.
File metadata
- Download URL: dataclense-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c1ae6f62b07253fb6bccb29cb4a16cdf2c5058d8992bdff0408321e9a993709
|
|
| MD5 |
6555acc6e77e167a89a3f5c5f2828dae
|
|
| BLAKE2b-256 |
ceede3ea251653af01259ed40183ed41945dd9bd954b791a84b947a237e93158
|
File details
Details for the file dataclense-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dataclense-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c62f17c5dc1a88c0acd3e0c3d89e85e26983580024b410460c527403d50b2035
|
|
| MD5 |
7771dbaa125de0b55ff17e0e949c43e5
|
|
| BLAKE2b-256 |
00fb859ce8ad2c01f241f294e8aebd5c0101e5c7fe707c613fc7dd2b8dc0468b
|