timeseriesflattener
timeseriesflattener is a Python package that turns irregular time-series observations into features for machine-learning models.
What timeseriesflattener is
timeseriesflattener is a Python package that turns irregular time-series observations into features for machine-learning models. It produces a dataframe with one row per prediction time and constructed feature columns, grouping observations by an ID. Users define prediction times and lookbehind windows for predictors or lookahead windows for outcomes. Documented aggregation choices include counts, earliest and latest values, maximums, means, minimums, slopes, sums, unique counts, and variances. The API also describes temporal predictors, outcomes, boolean outcomes, static features, and time-delta features. A fallback value can be specified when a feature window contains no data. The package accepts pandas or Polars dataframes for prediction-time and static frames, and a tutorial shows feature generation from pre-embedded text represented with IDs, timestamps, and embedding columns. Its introductory tutorial points to complicated, irregular time series in simple-model training as a particularly suitable use. Installation uses pip, and downloadable Jupyter notebook tutorials can be run locally. The package is free and self-hosted; bug reports and feature requests go to GitHub Issues, while usage discussion is directed to GitHub Discussions.
Good
- Free Python package
- Works with pandas or Polars dataframes
- Supports lookbehind and lookahead windows
- Includes varied documented aggregation options
- Tutorial notebooks can be run locally
Watch out
- Requires Python package installation
- Deployment is self-hosted
Who it suits
It may suit people working with complex, irregular time-series data who want to build features for simple machine-learning models.
Verdict
timeseriesflattener focuses on shaping irregular observations into features, with configurable windows, aggregations, and fallback values. It is a focused option for users comfortable working with Python dataframes.
The facts
Each one read from timeseriesflattener's own pages, with the date it was checked.
What it does
- Aggregations
- Documented aggregators include count, earliest, latest, maximum, mean, minimum, slope, sum, unique count, and variance.checked 4 Oct 2026
- Audience
- The introductory tutorial says the package is especially helpful for complicated and irregular time series when training simple models.checked 4 Oct 2026
- Dataframes
- The API accepts pandas or Polars dataframes for prediction-time and static frames.checked 4 Oct 2026
- Feature types
- The API documents temporal predictors, outcomes, boolean outcomes, static features, and time-delta features.checked 4 Oct 2026
- Install
- The official installation page instructs users to install the package with pip using `pip install timeseriesflattener`.checked 4 Oct 2026
- Missing values
- Feature specifications accept a fallback value for cases where the relevant look window has no data.checked 4 Oct 2026
- Output
- It converts irregular time series into a dataframe with one row per prediction time and columns for constructed features, aggregating values by an ID column.checked 4 Oct 2026
- Parallel processing
- The introductory tutorial says n_workers can parallelize operations across multiple cores.checked 4 Oct 2026
- Publication
- The package has a 2023 paper in the Journal of Open Source Software describing it as a Python package for summarizing features from medical time series.checked 4 Oct 2026
- Purpose
- timeseriesflattener is a Python package for generating time-series features used as predictors in machine-learning models.checked 4 Oct 2026
- Support
- The docs direct bug reports and feature requests to GitHub Issues and usage questions or general discussion to GitHub Discussions.checked 4 Oct 2026
- Text
- The text tutorial demonstrates generating flattened predictors from pre-embedded text represented as a dataframe with entity IDs, timestamps, and embedding columns.checked 4 Oct 2026
- Tutorials
- The documentation provides downloadable Jupyter notebook tutorials that users can run locally.checked 4 Oct 2026
Where it runs
- Prediction windows
- Feature specifications let users set prediction times and lookbehind windows for predictors or lookahead windows for outcomes.checked 4 Oct 2026
Money
- Pricing and trial
- The opened official documentation describes a Python package and installation instructions but states no price or free-trial terms.checked 4 Oct 2026
Alternatives to timeseriesflattener
- 1
Microsoft Planner
Free planAndroidiOSWebAPI7.9Free plan - 2
EasyMorph
Free planWebAPISelf-hostedWindows7.7From $600 a year - 3
DataCleaner
Free planOpen sourceAPILinuxmacOSSelf-hosted7.4Free plan - 4

AWS Glue DataBrew
WebAPI7.2 - 5
Microsoft Project
Free planWebAPIWindows7.2Free plan - 6
qsv
Free planWebLinuxmacOSWindows6.9From $99.99 a month
