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/). The
OCEL
object is returned by this method- Parameters:
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:
OCEL
import pm4py ocel = pm4py.read_ocel_csv("<path_to_ocel_file.csv>")