Closed 23722 closed 1 year ago
Dear @23722
With the release of pm4py 2.3.0 we changed our default data structure to Pandas dataframe.
Which means, we lose the possibility to iterate over the cases of the log, in favour of a columnar-style storage (which allows for easier querying/filtering).
To use the old code with the new pm4py.read_xes output, you would need to manually call the conversion to the traditional EventLog object: log = pm4py.convert_to_event_log(log)
pm4py.__version__ == 2.3.2
Imported an XES file (Sepsis Log) with
log = pm4py.read_xes(path_log)
Goal: Query the log by index, e.g.log[0]
.Expected behavior Like in
pm4py.__version__ == 2.2.X
(I tested it with two versions of2.2.X
, works fine):Actual Behavior (with
pm4py.__version__ == 2.3.2
)