pm4py.convert.convert_log_to_ocel#
- pm4py.convert.convert_log_to_ocel(log: EventLog | EventStream | DataFrame, activity_column: str = 'concept:name', timestamp_column: str = 'time:timestamp', object_types: Collection[str] | None = None, obj_separator: str = ' AND ', additional_event_attributes: Collection[str] | None = None, additional_object_attributes: Dict[str, Collection[str]] | None = None) OCEL [source]#
Converts an event log to an object-centric event log with one or more than one object types.
- Parameters:
log_obj – log object
activity_column (
str
) – activity columntimestamp_column (
str
) – timestamp columnobject_types – list of columns to consider as object types
obj_separator (
str
) – separator between different objects in the same columnadditional_event_attributes – additional attributes to be considered as event attributes in the OCEL
additional_object_attributes – additional attributes per object type to be considered as object attributes in the OCEL (dictionary in which object types are associated to their attributes, i.e., {“order”: [“quantity”, “cost”], “invoice”: [“date”, “due date”]})
- Return type:
OCEL