pm4py.convert.convert_to_dataframe#

pm4py.convert.convert_to_dataframe(obj: EventStream | EventLog, **kwargs) DataFrame[source]#

Converts a log object to a dataframe

Parameters:

obj – log object

Return type:

pd.DataFrame

import pm4py

log = pm4py.read_xes("tests/input_data/running-example.xes")
dataframe = pm4py.convert_to_dataframe(log)