pm4py.filtering.filter_ocel_end_events_per_object_type#
- pm4py.filtering.filter_ocel_end_events_per_object_type(ocel: OCEL, object_type: str) OCEL [source]#
Filters the events in which an object for the given object type terminates its lifecycle. (E.g. an event with activity “Pay Order” might terminate an order).
- Parameters:
ocel (
OCEL
) – object-centric event logobject_type (
str
) – object type to consider
- Return type:
OCEL
import pm4py filtered_ocel = pm4py.filter_ocel_end_events_per_object_type(ocel, 'delivery')