pm4py.convert.convert_to_event_stream#
- pm4py.convert.convert_to_event_stream(obj: EventLog | DataFrame, case_id_key: str = 'case:concept:name', **kwargs) EventStream [source]#
Converts a log object to an event stream
- Parameters:
obj – log object
case_id_key (
str
) – attribute to be used as case identifier
- Return type:
EventStream
import pm4py log = pm4py.read_xes("tests/input_data/running-example.xes") event_stream = pm4py.convert_to_event_stream(log)