tsam - Time Series Aggregation Module

JSON →
library 3.4.1 ·python
verified Jun 7, 2026

tsam is a time series aggregation module for creating typical periods (e.g., days or weeks) from high-resolution time series, commonly used in energy system modeling and other time series analysis. It provides methods like k-means clustering, hierarchical clustering, and averaging to reduce data while preserving key statistical features. Current version: 3.4.1, requires Python >=3.10, <3.15. Release cadence: periodic, with major version bumps for breaking changes.