pm4py.ocel.ocel_merge_duplicates#
- pm4py.ocel.ocel_merge_duplicates(ocel: OCEL, have_common_object: bool | None = False) OCEL [source]#
Merge events in the OCEL that happen with the same activity at the same timestamp
- Parameters:
ocel (
OCEL
) – object-centric event loghave_common_object – impose the additional merge condition that the two events should happen at the same timestamp.
- Return type:
OCEL
import pm4py ocel = pm4py.read_ocel('trial.ocel') ocel = pm4py.ocel_merge_duplicates(ocel)