Automated time-series feature extraction · ~1200 features + statistical selection · verified against tsfresh 0.21 (2026)

tsfresh cheat sheet

tsfresh ("Time Series FeatuRE extraction on the basis of Scalable Hypothesis tests") turns raw time series into a tabular feature matrix for ML: it computes ~1200 features per series — peaks, autocorrelations, entropy, FFT coefficients, trend strength — then uses hypothesis testing to keep only the features relevant to your target. Feed the result to any sklearn model. This sheet targets tsfresh 0.21.

extract data format settings & impute selection reuse & pipelines gotcha most common

Verified 2026-08-24 against the official docs at tsfresh.readthedocs.io and the blue-yonder/tsfresh repo (0.21.x). Outputs a pandas feature matrix (one row per series id); pairs with scikit-learn.

Outline

The core loop: get data into long formatextract_featuresimputeselect_features. Then reuse the chosen settings on new data.

Extract

  1. 1 · Install & the idea
  2. 2 · extract_features
  3. 3 · Data format

Tune & clean

  1. 4 · Feature settings
  2. 5 · Impute NaNs

Select

  1. 6 · select_features
  2. 7 · extract_relevant_features

Productionize

  1. 8 · Reuse settings
  2. 9 · Forecasting & sklearn
  3. 10 · Gotchas
  4. Worth memorizing

Extract

Raw series in, wide feature matrix out.

1Install & the idea0.21
2extract_featuresthe core call
3Data formatget it right first

Tune & Clean

Control how many features, and handle the NaNs they create.

4Feature settingshow many features
5Impute NaNsbefore ML

Select

Keep only the features that matter — tsfresh's signature step.

6select_featureshypothesis testing
7extract_relevant_featuresone-shot

Productionize

Apply the chosen features to new data, forecast, and use in pipelines.

8Reuse settingstrain/serve consistency
9Forecasting & sklearnintegrate
!Common gotchasread before shipping

Worth memorizing

series → ~1200 features → selectextract, impute, then keep the relevant ones
long format: id | time | valuecolumn_id groups, column_sort orders
column_kind for multiple signalsstack sensors under a kind column
EfficientFCParameters is the defaultComprehensive = all, Minimal = fast few
impute before select_featuresNaN/inf break the selection test
select_features needs yFDR-controlled hypothesis testing keeps relevant features
extract_relevant_features = all-in-oneextract + impute + select
settings.from_columns for servingrecompute only the chosen features on new data
roll_time_series for forecastingwindows → features → predict next step; RelevantFeatureAugmenter in Pipelines