pm4py.ocel.ocel_drop_duplicates#

pm4py.ocel.ocel_drop_duplicates(ocel: OCEL) OCEL[source]#

Drop relations between events and objects happening at the same time, with the same activity, to the same object identifier. This ends up cleaning the OCEL from duplicate events.

Parameters:

ocel (OCEL) – object-centric event log

Return type:

OCEL

import pm4py

ocel = pm4py.read_ocel('trial.ocel')
ocel = pm4py.ocel_drop_duplicates(ocel)