New data visualizations Discover new time series plots like Time Series Box Plots, Regression Plots, Seasonal and Decomposition plots in our upgraded Guide 01.
Selectors + natural periods guide. Learn how to point at columns with contains()/starts_with() and specify periods like "2 weeks" or "45 minutes". β Guide 08
Polars everywhere. Dedicated Polars guide plus .tk accessor coverage for plotting, feature engineering, and gap filling.
GPU + Feature Store (beta). Run rolling stats using our RAPIDS cudf guide or cache/track expensive feature sets with metadata and MLflow hooks in our new Feature Store guide.
5 Installation
Install the latest stable version of pytimetk using pip:
pip install pytimetk
Alternatively you can install the development version:
Advanced Plotting Diagnostics: Added new APIs for visualizing time series diagnostics. These functions provide interactive and insightful plots to analyze correlation, seasonality, and trends. plot_acf_diagnosticsplot_seasonal_diagnosticsplot_time_series_boxplot.
Polars-native optimizations & memory efficiency: eliminated unnecessary conversions to pandas, keeping data in Arrow buffers for zero-copy chaining and reduced memory overhead.
~7X faster execution for EWM operations (augment_ewm).
pytimetk 2.1.x
GPU acceleration (beta) for rolling/expanding/finance helpers via NVIDIA RAPIDS cudf (polars.LazyFrame.collect(engine="gpu") supported).
pad_by_time(fillna=β¦) scalar filling, new selectors/human-duration guide, Plotly theming helper.
pytimetk 2.0.x
Polars .tk accessor support landed for plotting helpers and diagnostics.
Feature Store beta with optional MLflow logging and on-disk caching.
8 Feature Store & Caching (Beta)
Beta
The Feature Store is currently released as a Beta capability. APIs, configuration options, and storage formats may change in upcoming releases. Please share feedback or issues so we can stabilize it quickly.
Persist expensive feature engineering steps once and reuse them everywhere. Register a transform, build it on a dataset, and reload it in any notebook or job with automatic versioning, metadata, and cache hits.
import pandas as pdimport pytimetk as tkdf = tk.load_dataset("bike_sales_sample", parse_dates=["order_date"])store = tk.FeatureStore()store.register("sales_signature",lambda data: tk.augment_timeseries_signature( data, date_column="order_date", engine="pandas", ), default_key_columns=("order_id",), description="Calendar signatures for sales orders.",)result = store.build("sales_signature", df)print(result.from_cache) # False first run, True on subsequent builds
Supports local disk or any pyarrow filesystem (e.g., s3://, gs://) via the artifact_uri parameter, plus optional file-based locking for concurrent jobs.
Optional MLflow helpers capture feature versions and artifacts with your experiments for reproducible pipelines.