Temporian

Temporian is a Python library for preprocessing and feature engineering of temporal data with leak prevention.

What it is

Temporian is an open-source Python library designed for safe, simple, and efficient preprocessing and feature engineering of temporal data. It handles multivariate time-series, time-sequences, event logs, and cross-source event streams, making it a specialized tool for temporal data similar to how Pandas serves tabular data. The library supports both uniformly and non-uniformly sampled data, single and multivariate formats, flat and multi-index structures, and mono-source and multi-source non-synchronized events.

Built with a C++ core optimized for temporal operations, Temporian can achieve speeds over 1,000 times faster than general-purpose data processing libraries when working with time-based data. It integrates seamlessly with popular machine learning ecosystems including PyTorch, Scikit-Learn, JAX, TensorFlow, XGBoost, and Yggdrasil Decision Forests, focusing purely on data preparation rather than model training.

A key safety feature is built-in future leak prevention: unless explicitly enabled with the leak operator, feature computations cannot depend on future data points, eliminating a common source of hard-to-debug errors in temporal modeling. The library provides a comprehensive set of operators for indexing, filtering, windowing, calendar features, resampling, and aggregation operations tailored for temporal workflows.

Getting started requires only a pip install on Linux or macOS, with Windows support in development. Users can load data from CSV, Parquet, Pandas, or TensorFlow formats, apply temporal operations through a fluent API, and export results back to Pandas or other formats for downstream modeling. The documentation includes tutorials for anomaly detection, fraud detection, heart rate analysis, and competition-grade forecasting.

Developed collaboratively by Google and Tryolabs, Temporian serves data scientists and ML engineers who work with time-series data, event streams, and temporal feature engineering. Its focus on correctness, performance, and ecosystem integration makes it a notable tool in the temporal data preprocessing niche.

This description was generated by AI from the site's public content and may contain errors.

What you can do there

  • Temporal data preprocessing and feature engineering library
  • Leak-safe temporal operations with explicit leak control
  • High-performance C++ backend for time-series operations
  • Integration with major ML frameworks (PyTorch, TensorFlow, Scikit-Learn, etc.)
  • Comprehensive documentation with tutorials and API reference

Who it's for

Data scientists and ML engineers working with time-series, event logs, and temporal feature engineering

Frequently asked questions about temporian.readthedocs.io

›What types of temporal data does Temporian support?

Temporian supports multivariate time-series, multivariate time-sequences, event logs, and cross-source event streams, handling both uniformly and non-uniformly sampled data with single or multiple indexes.

›How does Temporian prevent data leakage?

By default, Temporian prevents feature computations from depending on future data. The leak operator must be explicitly used to allow future-dependent calculations, making unwanted leakage impossible by accident.

›Which machine learning libraries does Temporian integrate with?

Temporian integrates with PyTorch, Scikit-Learn, JAX, TensorFlow, XGBoost, and Yggdrasil Decision Forests, exporting processed data as Pandas DataFrames, NumPy arrays, or TensorFlow datasets.

›What platforms is Temporian available on?

Temporian is currently available for Linux and macOS on both ARM and Intel architectures. Windows support is under development.

›What are the main operators available in Temporian?

Operators include indexing, filtering, window aggregations (moving sum, average, min, max, count), calendar features, resampling, joins, lag, map, and temporal joins like since_last and until_next.

›Is Temporian free to use?

Yes, Temporian is an open-source library available for free via pip install from PyPI.

›Where can I find tutorials and examples?

The documentation includes tutorials for supervised and unsupervised anomaly detection, payment card fraud detection, heart rate analysis, loan outcome prediction, M5 competition forecasting, and running on Apache Beam.