str, objects_path: Optional[str] = None, encoding: str = 'utf-8') OCEL[source]#

Reads an object-centric event log from a CSV file (see: The OCEL object is returned by this method

  • file_path (str) – file path of the object-centric event log (.csv)

  • objects_path – [Optional] file path from which the objects dataframe should be read

  • encoding (str) – the encoding to be used (default: utf-8)

Return type:


import pm4py

ocel = pm4py.read_ocel_csv("<path_to_ocel_file.csv>")