pm4py.read.read_ocel_csv#

pm4py.read.read_ocel_csv(file_path: str, objects_path: str | None = None, encoding: str = 'utf-8') OCEL[source]#

Reads an object-centric event log from a CSV file (see: http://www.ocel-standard.org/). Returns an OCEL object.

Parameters:
  • file_path (str) – Path to the object-centric event log file (.csv).

  • objects_path – [Optional] Path to the objects dataframe file.

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

Return type:

OCEL

import pm4py

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