pm4py.filtering.filter_ocel_object_attribute#
- pm4py.filtering.filter_ocel_object_attribute(ocel: OCEL, attribute_key: str, attribute_values: Collection[Any], positive: bool = True) OCEL [source]#
Filters the object-centric event log based on the provided object attribute values.
- Return type:
- Parameters:
ocel (
OCEL
) – Object-centric event log.attribute_key (
str
) – Attribute at the object level to filter.attribute_values – Collection of attribute values to keep or remove.
positive (
bool
) – Determines whether the values should be kept (True) or removed (False).
- Returns:
Filtered OCEL.
import pm4py filtered_ocel = pm4py.filter_ocel_object_attribute( ocel, 'ocel:type', ['order'] )