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.1.tar.gz (2.2 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.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydataviz_cleaner-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 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.1.tar.gz
Algorithm Hash digest
SHA256 e44e1e224868a5be1a29db0e439c3c42c09eda1b142de7c992aca28ac38de15d
MD5 741b5c19515cddc5ed6f710b48e92989
BLAKE2b-256 7f9cbe00fb8a5d1267cb9e88315ba56389946f7005b01fdf308e13614d631802

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydataviz_cleaner-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb03915604712d490acf31dc547e316b6b7f643cd5640c3f96576876e0f9bc72
MD5 68d4ce21655e04c3cfa40996b295ecf4
BLAKE2b-256 0fbe4c3410aaf6563422d46a2942ff72edc296bfc7d46be1a453a6a7a67678ec

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