Install & Compatibility
Where this runs
tested against v1.0.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 231MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 7.4s · import 0.000s · 222MB
230MB installed
● package 230MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ConvolutionSmoother
✓ from tsmoothie import ConvolutionSmoother
✗ from tsmoothie.smoother import ConvolutionalSmoother
ExponentialSmoother
✓ from tsmoothie import ExponentialSmoother
LowessSmoother
✓ from tsmoothie import LowessSmoother
Basic smoothing with LowessSmoother. Tsmoothie operates on 2D arrays (time series in rows). Ensure data is float and shape (n_series, n_points).
import numpy as np
from tsmoothie.smoother import LowessSmoother
# Generate noisy data
np.random.seed(42)
data = np.cumsum(np.random.randn(100)) + 10
# Set up smoother
smoother = LowessSmoother(smooth_fraction=0.1, iterations=1)
smoother.smooth(data)
# Access smoothed and intervals
smoothed = smoother.smooth_data[0]
low, up = smoother.get_intervals('prediction_interval')
print('Smoothed:', smoothed[:5])
Upgrade
Version history
1.0.5latest on PyPI · released Nov 23, 2023
Audit
Dependencies
numpyrequiredCore dependency for array operations
scipyrequiredRequired for some smoothing methods (e.g., Lowess, Spline)
scikit-learnoptionalUsed for KNN-based outlier detection
statsmodelsoptionalRequired for DecomposeSmoother and some statistical tests