pm4py.write.write_ocel_csv#

pm4py.write.write_ocel_csv(ocel: OCEL, file_path: str, objects_path: str, encoding: str = 'utf-8')[source]#

Writes an OCEL object to disk in the .csv file format. The OCEL object is exported into two separate files, i.e., one event table and one objects table. Both file paths should be specified

Parameters:
  • ocel (OCEL) – OCEL object

  • file_path (str) – target file path on disk to write the event table to

  • objects_path (str) – target file path on disk to write the objects table to

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

import pm4py

log = pm4py.write_ocel_csv(ocel, '<path_to_export_events_to>', '<path_to_export_objects_to>')