Skip to main content

Add peak-to-peak interval features to tsfresh

Project description


This package provides some peak-to-peak interval (PPI) variability features to augment tsfresh [1]. Currently, tsfresh will find and count peaks using a couple of different methods. However, it does not measure the variability in timing between those peaks.


Option 1: Clone this repo. Install prereqs from requirements.txt. Then install the cloned directory, e.g. with pip3 install -e [repo path].

Option 2: Install directly from PyPI (tsfresh-ppi).


from tsfresh import extract_features
from tsfresh_ppi import get_fc_parameters

my_signal = ...  # some pandas DataFrame

# The default way to extract features with tsfresh looks something like this:
features = extract_features(

# This is how to get all of the default tsfresh features, plus default PPI features:
fc_params_with_ppi = get_fc_parameters()
features = extract_features(
    default_fc_parameters = fc_params_with_ppi,



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsfresh_ppi-2021.8.29.tar.gz (6.4 kB view hashes)

Uploaded source

Built Distribution

tsfresh_ppi-2021.8.29-py3-none-any.whl (6.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page