Infilling¶
Time Series Infill Module
This module provides a flexible framework for filling missing values (infilling) in time series data using
Polars and SciPy. Infill methods are implemented as subclasses of InfillMethod and can be registered
and instantiated by name, class, or instance.
The infill pipeline handles:
Padding the time series to ensure consistent timestamps
Identifying gaps and their sizes
Applying constraints such as maximum gap size and observation intervals
Delegating to a specific infill method to fill missing values
Infilling methods¶
Infill from an alternative data source, with optional correction factor. |
|
Akima interpolation using scipy (good for avoiding oscillations). |
|
B-spline interpolation using scipy make_interp_spline with configurable order. |
|
Cubic spline interpolation (Convenience wrapper around B-spline with order=3). |
|
Linear spline interpolation (Convenience wrapper around B-spline with order=1). |
|
PCHIP interpolation using scipy (preserves monotonicity). |
|
Quadratic spline interpolation (Convenience wrapper around B-spline with order=2). |
Pipeline¶
Encapsulates the logic for the infill pipeline steps. |