SeasonalImpute
A Python package for imputing missing values in time series data using a seasonal weighted average approach.
Installation
pip install SeasonalImpute
Usage
import numpy as np
from SeasonalImpute import SeasonalWeightedAverageImputation
# Example data
data = np.array([1.0, np.nan, 3.0, 1.0, np.nan, 3.0])
# Impute with seasonality
imputer = SeasonalWeightedAverageImputation(window=3, seasonality={2: 0.5})
imputed_data = imputer(data)
print(imputed_data)
Features
- Imputes missing values using nearby values and seasonal patterns.
- Customizable window size and seasonal weights.
- Built on
gluontsandnumpyfor robust time series handling.
Development
To contribute:
-
Clone the repository:
git clone https://github.com/hanifkia/SeasonalImpute.git
-
Install dependencies:
pip install -e .[dev]
-
Run tests:
pytest
License
MIT License. See LICENSE for details.
Metadata
Release files for SeasonalImpute 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seasonalimpute-0.1.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seasonalimpute-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / seasonalimpute-0.1.0.tar.gz
| Download URL | seasonalimpute-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89cd4605a3250868e752d3cc471f093e69d024de8023d54628274ace0fe78ab6
|
|
BLAKE2b-256 checksum How to use checksums |
8c967be50de5b80168946340abed2a7952837267f62fe0256dbe88aed95b9f7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / seasonalimpute-0.1.0-py3-none-any.whl
| Download URL | seasonalimpute-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0a9d5eab2639815d4444379709897aa84a340bf3acd273ee8aa96feee522a91
|
|
BLAKE2b-256 checksum How to use checksums |
fbd28dc0fef73de9ec06a98afd44a93c18c6461cb8dc67003aee7cfcbe375d8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|