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
| Parameter | Type | Description |
|---|---|---|
left | str | Event marking the start of the window (inclusive). |
right | str | Event marking the end of the window (inclusive). Must occur after left. |
path_id_col | str | None | Override the path ID column. |
event_col | str | None | Override the event column. |