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.3.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datacleanair-0.1.3.tar.gz.
File metadata
- Download URL: datacleanair-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e9ae444a67707bc60d240e50cb74c75389d5edfa774664ffcd1aca003ada86b
|
|
| MD5 |
b942a1f93224f6881c987fa37ac71f39
|
|
| BLAKE2b-256 |
dcb1501e52f678df266697bd71f0b220aada52b17a93e235e302f005061eb2e9
|
File details
Details for the file datacleanair-0.1.3-py3-none-any.whl.
File metadata
- Download URL: datacleanair-0.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c14c7f5885dc61b9b9be6799731886407cd7fb28ef6d67a0370c1484ea13a06
|
|
| MD5 |
23fb4889f6e10cb1b5055812624b6423
|
|
| BLAKE2b-256 |
ef6808b627165527c5773132685a9bed5ec72a6853339b813f0e6c666f70d259
|