Skip to main content

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 gluonts and numpy for robust time series handling.

Development

To contribute:

  1. Clone the repository:

    git clone https://github.com/hanifkia/SeasonalImpute.git
    
  2. Install dependencies:

    pip install -e .[dev]
    
  3. 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)

Source distribution for SeasonalImpute 0.1.0
File Size Uploaded
seasonalimpute-0.1.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for SeasonalImpute 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page