Skip to main content

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

pydataviz_cleaner-0.0.3.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

pydataviz_cleaner-0.0.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for pydataviz_cleaner-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1c09e0087d88add8d862e4d7b5a8149e9d5e0829cf16ba796d339b3495fd0b5d
MD5 d757ed9127d2845f5dd3c15f66470701
BLAKE2b-256 a8f8b69457549eea5d4489ed303a7db0e363137ee3caa665730abcdb194953e2

See more details on using hashes here.

File details

Details for the file pydataviz_cleaner-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pydataviz_cleaner-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1906aefb4f331cd1143af0c13b13a8e30444ac9d90ae3ae1f043d63e9c0773ef
MD5 de3a3efccc559ac7fc1a001d02c030c5
BLAKE2b-256 e2e4b312c4f5092e3b5e65f91d139c60813adfe372aecdae2d3f798b7e9d16a4

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