--- id: time-aware-imputer version: "1.0.0" license: MIT license_treatment: permissive maintenance: active --- # time-aware-imputer — Time-aware missing data imputation for irregular time series License: permissive · Maintenance: active · Downloads: 345.4K/mo ## What it is and what it does Time-aware-imputer is a Python library that fills missing values in time-series data by understanding that gaps of different durations require different treatment. Unlike generic imputation methods that ignore temporal structure, this library uses spline interpolation (linear, cubic, quadratic, PCHIP, or Akima) to reconstruct missing values while preserving temporal trends. It wraps scipy's interpolation functions with a scikit-learn compatible API, so it integrates into standard ML pipelines. The package provides two main tools: SplineImputer for filling missing values with your choice of interpolation method, and GapAnalyzer for diagnosing missing data patterns—counting gaps, measuring their duration, and visualizing them. It's designed for IoT sensor networks, industrial monitoring, and other scenarios where time-series data arrives irregularly and you need to understand and fill the gaps before analysis or modeling. Use it for: - Impute sensor readings from IoT devices that report at irregular intervals or have communication failures. - Fill gaps in financial time-series data (stock prices, exchange rates) while preserving trend direction. - Analyze and visualize missing data patterns in multi-sensor industrial equipment before preprocessing for ML. - Prepare time-series data for scikit-learn pipelines by handling missing values with time-aware methods. - Reconstruct monotonic or smooth trends in environmental monitoring data (temperature, humidity, pressure). ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Fills missing values in time-series data while respecting irregular time intervals, using spline-based interpolation methods and providing gap analysis tools. Yes, if you work with irregular time-series data and need intelligent gap-filling. The library is actively maintained, has no known vulnerabilities, and integrates cleanly with pandas and scikit-learn. However, it is early-stage (Alpha, 2 stars, 167 days old), so expect the API or behavior to evolve; use it for production work only if you can tolerate potential breaking changes or have capacity to adapt. ## Install pip install time-aware-imputer uv add time-aware-imputer poetry add time-aware-imputer ## Installing time-aware-imputer Before you install: Low friction install with five standard scientific dependencies (numpy, pandas, scipy, scikit-learn, matplotlib). Active maintenance as of 2026-02-28 with recent commits; early-stage project (Alpha status, 2 stars) so community validation is limited. License in practice: MIT license permits commercial and private use with minimal restrictions; you must include the license text in distributions but face no copyleft obligations. Quickstart: pip install time-aware-imputer import pandas as pd import numpy as np from time_aware_imputer import SplineImputer, GapAnalyzer df = pd.DataFrame({ 'timestamp': pd.date_range('2024-01-01', periods=100, freq='h'), 'temperature': np.random.randn(100) }) df.loc[10:15, 'temperature'] = np.nan imputer = SplineImputer(method='cubic') df_imputed = imputer.fit_transform(df) Requires a 'timestamp' column (or explicitly named time column) in your DataFrame; the imputer expects pandas DataFrames with datetime index or explicit timestamp column. Verify before relying: - Whether the library handles multivariate imputation (correlations between columns) or treats each column independently. - Performance characteristics on large datasets (memory usage, computational cost for different interpolation methods). - How the library behaves with very sparse data or extremely irregular sampling intervals. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 345.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags time series missing data imputation, irregular interval gap filling, spline interpolation time aware, temporal missing value handling, time-aware data imputation, sensor data gap analysis, sklearn compatible imputer, time-series, data-imputation, iot-sensors [View on SkillFed](https://skillfed.io/packages/time-aware-imputer) · [View on PyPI](https://pypi.org/project/time-aware-imputer/)