pm4py.ocel.ocel_flattening(ocel: OCEL, object_type: str) DataFrame[source]#

Flattens the object-centric event log to a traditional event log with the choice of an object type. In the flattened log, the objects of a given object type are the cases, and each case contains the set of events related to the object.

  • ocel (OCEL) – object-centric event log

  • object_type (str) – object type

Return type:


import pm4py

event_log = pm4py.ocel_flattening(ocel, 'items')