Truncate Paths

Trims each path to include only events between the first occurrence of a left event and the next occurrence of a right event (both inclusive). Paths that do not contain both events are dropped entirely.

Usage

es.truncate_paths(left="add_to_cart", right="purchase")

Parameters

ParameterTypeDescription
leftstrEvent marking the start of the window (inclusive).
rightstrEvent marking the end of the window (inclusive). Must occur after left.
path_id_colstr | NoneOverride the path ID column.
event_colstr | NoneOverride the event column.