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.2.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.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file pydataviz_cleaner-0.0.2.tar.gz.

File metadata

  • Download URL: pydataviz_cleaner-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 defc9af57820d48a3a5723473e2102fbdcb927ee5d8b58b2f1c27103fe340fc8
MD5 860ee20394e25df10163fc28751e98c9
BLAKE2b-256 6a4d94be944d3305d6967cef267688aac2dc8cde5069c85d45c9e4e29b5392a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydataviz_cleaner-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 560d7a379064f5f3cb465e92695cff584f3dbde44c4946dcc9869e1bba4e31d1
MD5 c8ff070aeacf117ac2078a395a1ef375
BLAKE2b-256 2a9cb7315527dc52ff24310835108381da8570ba3cd5bf7aa768901ed8ae9cb6

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