Nixtla/tsfeatures
Calculates various features from time series data. Python implementation of the R package tsfeatures.
What it solves
This project provides a Python-based way to extract descriptive characteristics (features) from time series data. It acts as a direct port of the popular R package of the same name, allowing data scientists to quantify patterns like trend, seasonality, and stability in their datasets.
How it works
The library processes time series data organized in a panel format (using pandas DataFrames with unique_id, ds, and y columns). It calculates a wide array of statistical features by default, such as autocorrelation, entropy, and unit root tests. Users can apply these built-in functions, specify custom feature-extraction functions, or even call the original R implementation directly from Python if they have the necessary R environment configured.
Who it’s for
It is designed for data scientists and researchers working with time series forecasting who need to summarize large collections of time series data into numerical features, often for use in meta-learning models like FFORMA.
Highlights
- Provides a comprehensive library of statistical features including trend, seasonality, and autocorrelation metrics.
- Supports custom feature functions defined by the user.
- Includes built-in frequency handling with customizable seasonal period mapping.
- Offers an interface to run the original R implementation of the package from within Python.
- Validated against the original R package to ensure consistent output across implementations.
Related
- Project
- Project
- Project
- Project
- Project