pm4py.ocel.ocel_drop_duplicates#
- pm4py.ocel.ocel_drop_duplicates(ocel: OCEL) OCEL [source]#
Removes duplicate relations between events and objects that occur at the same time, have the same activity, and are linked to the same object identifier. This effectively cleans the OCEL by eliminating duplicate events.
- Parameters:
ocel (OCEL) – Object-centric event log.
- Returns:
Cleaned object-centric event log without duplicate relations.
- Return type:
import pm4py ocel = pm4py.read_ocel('trial.ocel') ocel = pm4py.ocel_drop_duplicates(ocel)