A lightweight Python package to clean messy data for visualization.
Project description
pydataviz_cleaner
A lightweight Python package to clean messy data for visualization and analysis.
✨ Features
- Drop missing values easily
- Remove duplicate rows
- Standardize date formats
- Simple, chainable API for quick data cleaning
📦 Installation
pip install pydataviz-cleaner
🚀 Usage
import pandas as pd
from pydataviz_cleaner.cleaner import DataCleaner
# Example DataFrame
df = pd.DataFrame({
"name": ["Alice", "Bob", "Bob", None],
"date": ["2023-01-01", "01/02/2023", "2023-01-02", "invalid"]
})
# Clean the data
cleaner = DataCleaner(df)
cleaned_df = (
cleaner
.drop_missing()
.drop_duplicates()
.standardize_dates("date")
.get_df()
)
print(cleaned_df)
🛠️ Development
- Clone the repo
- Create a virtual environment
- Install dependencies with pip install -e .
📜 License
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 pydataviz_cleaner-0.0.3.tar.gz.
File metadata
- Download URL: pydataviz_cleaner-0.0.3.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c09e0087d88add8d862e4d7b5a8149e9d5e0829cf16ba796d339b3495fd0b5d
|
|
| MD5 |
d757ed9127d2845f5dd3c15f66470701
|
|
| BLAKE2b-256 |
a8f8b69457549eea5d4489ed303a7db0e363137ee3caa665730abcdb194953e2
|
File details
Details for the file pydataviz_cleaner-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pydataviz_cleaner-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1906aefb4f331cd1143af0c13b13a8e30444ac9d90ae3ae1f043d63e9c0773ef
|
|
| MD5 |
de3a3efccc559ac7fc1a001d02c030c5
|
|
| BLAKE2b-256 |
e2e4b312c4f5092e3b5e65f91d139c60813adfe372aecdae2d3f798b7e9d16a4
|