pm4py.write.write_ocel_csv#
- pm4py.write.write_ocel_csv(ocel: OCEL, file_path: str, objects_path: str)[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 objectfile_path (
str
) – target file path on disk to write the event table toobjects_path (
str
) – target file path on disk to write the objects table to
import pm4py log = pm4py.write_ocel_csv(ocel, '<path_to_export_events_to>', '<path_to_export_objects_to>')