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 numpy as np
import pandas as pd

from DatacleanAir import (
    hampel_filter,
    iqr_filter,
    rate_of_change_filter,
    kalman_filter,
    clean
)

data = pd.Series([10, 11, 12, 300, 13, 14, 15, 400, 16, 17])

print("=== Hampel ===")
print(hampel_filter(data))

print("=== Rate of Change ===")
print(rate_of_change_filter(data))

print("=== IQR ===")
print(iqr_filter(data))

print("=== Kalman ===")
print(kalman_filter(data))

print("=== FULL PIPELINE ===")
df = clean(data)
print(df)

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: datacleanair-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 7ccb631beda341d80076d89477480f0c761fdfdb97524afe9846d3670b62538c
MD5 fc8e5b90a2ed8834b42c41b6f9a73c13
BLAKE2b-256 e6b785303bc72e407e043505ceda916d8b5c472c2a3d79120e96055992321f17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datacleanair-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 19c2e036c0d90683fbaea1761f11190e132fca6852029c400ef391b12e13e030
MD5 2ae4a1d6ff993e5adad3fd77ad7d2054
BLAKE2b-256 2df9ca31ab2741299d03ef63725b3c9ce51800367ca000c22e2f3e3fdabb00c6

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