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.1.2.tar.gz (4.6 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.1.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for datacleanair-0.1.2.tar.gz
Algorithm Hash digest
SHA256 717c1ece4b242af2e232a8758f265f20640be4549b99919c4721209e0c8b74f4
MD5 c88290ca7574f26f20552c6a1eeb7d7d
BLAKE2b-256 e09b1931e8f688d12709513ad8c771362b2a273351813f5a02d789eda5e1018e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datacleanair-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 979d9a3281fe7ecc63acadbe2c54f373b2d640357b886228e9013e5b74390c30
MD5 94cc8997233c1429af5a91cac6f8b473
BLAKE2b-256 587004bc17f76730e7aa8c27f64b6f986fa799eb9c1ebe84e7a928663e01e765

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