pm4py.ocel.ocel_merge_duplicates#
- pm4py.ocel.ocel_merge_duplicates(ocel: OCEL, have_common_object: bool | None = False) OCEL [source]#
Merges events in the OCEL that have the same activity and timestamp. Optionally, ensures that the events being merged share a common object.
- Parameters:
ocel (OCEL) – Object-centric event log.
have_common_object (Optional[bool]) – If set to True, only merges events that share a common object. Defaults to False.
- Returns:
Object-centric event log with merged duplicate events.
- Return type:
import pm4py ocel = pm4py.read_ocel('trial.ocel') ocel = pm4py.ocel_merge_duplicates(ocel)