Skip to main content

Data cleaning tools for air quality analysis

Project description

DatacleanAir

A Python library for preprocessing, cleaning, and filtering air quality datasets.

Citation

Muñiz-Torres, L. F., et al. (2025). DatacleanAir: A Python library for air quality data cleaning. GitHub Repository.

Installation

pip install dataclenair

Quick Start

import pandas as pd
from DatacleanAir import kalman_filter, hampel_filter, z_score_normalize

# Load your dataset
df = pd.read_csv("pm25_data.csv")

pm = df["PM2.5"].values

# Apply normalization
pm_norm = z_score_normalize(pm)

# Apply Kalman filter
pm_kalman = kalman_filter(pm_norm)

# Remove outliers with Hampel
pm_clean = hampel_filter(pm_kalman, window_size=15, n_sigmas=3)

Features

  • Z-score normalization
  • Kalman filtering
  • Hampel outlier detection
  • Tools for common air quality preprocessing pipelines

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

datacleanair-0.2.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

datacleanair-0.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file datacleanair-0.2.0.tar.gz.

File metadata

  • Download URL: datacleanair-0.2.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for datacleanair-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9720343ccfc0101ce20ee42ff82372dcde723cbbc0da7f977bb19e30d669e50d
MD5 0421fee2aa564b04faaba1285ba8f70f
BLAKE2b-256 aa8f05df15df06c6a16de51d69674a855e37c8454ba8c4a23599b6e3e264f1c2

See more details on using hashes here.

File details

Details for the file datacleanair-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: datacleanair-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for datacleanair-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1973441280febc208a8722d9537fa6740251f3150e04004cee0a60476532f840
MD5 bd4b3398b2e72d70e76fa3654aaa0e68
BLAKE2b-256 3dcfe547a1bd174af51cdca7970b9baaa31891459292b63ec65c35f48b1dfe76

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