Streaming & pipelines#

Align and reshape event streams, wire operators into a runnable pipeline, and save and resume them.

Streams#

Aligning, combining, and reshaping event streams.

Function

Description

CombineLatest

As-of latest-value join of N streams: one row per distinct index (same-index events coalesce).

Delay

Re-stamp each event's index by a fixed time offset (a latency line).

Dropna

Drop events whose value is NaN.

Filter

Two-input mask gate that keeps each data value whose aligned mask is nonzero.

from_pandas

Convert a pandas Series or DataFrame to a (values, index) tuple.

Merge

Merge N value streams into one index-sorted (values, sources, index).

Resample

Causal windowed downsample of a 1-D or multi-column value stream.

reshape

Name the axes of data with a layout string (T, A, F) and reshape it to match.

Segment-wise operator

Runs an operator on each segment of rows with the same label, resetting it where the label changes.

Select

Pick column(s) from a wide (M, N) value stream.

split

Partition a merged tagged stream back into per-source streams.

Stream tuple convention

The (values, index) tuple at every operator boundary.

to_pandas

Convert a (values, index) tuple to a pandas Series or DataFrame.

Pipelines#

Building and running a pipeline.

Function

Description

Pipeline

A reusable N-in / M-out function you define once and call on stored or live data.

Save and restore#

Writing an operator, a Pipeline or a live session to a file and resuming it later.

Function

Description

from_settings

Build a fresh function from its type and settings, with no state.

load

Read a file that save wrote and return the function, Pipeline or live session it holds.

loads

Read a save file from a string or bytes and return the object it holds.

resume

The batch call that starts from a function's state and keeps the end state.