pm4py / pm4py-core

Public repository for the PM4Py (Process Mining for Python) project.
https://pm4py.fit.fraunhofer.de
GNU General Public License v3.0
722 stars 286 forks source link

dataframe_utils.py:176: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. #423

Closed skyocean closed 1 year ago

skyocean commented 1 year ago

Hi, I really appreciate some help. Regarding pm4py.read_xes(), I tried to pass running_example.xes and other xes dataset. I got warnings: "log\util\dataframe_utils.py:176: UserWarning: Could not infer format, so each element will be parsed individually, falling back to dateutil. To ensure parsing is consistent and as-expected, please specify a format."

Then I tried to run https://github.com/pm4py/pm4py-core/blob/release/notebooks/2_event_data_filtering.ipynb.

I got different results and warning:

import pm4py
log = pm4py.read_xes('data/running_example.xes')
list(map(lambda t: len(t), log))

Output, instead [9, 5, 5, 5, 13, 5] I got [12, 12, 14, 8, 8, 5, 17]

Regarding this command

lf = pm4py.filter_log(lambda t: len(t) > 5, log)
list(map(lambda t: len(t), lf))

I got warning "C:\Users\oZZo\AppData\Local\Temp\ipykernel_5964\553380614.py:1: DeprecatedWarning: filter_log is deprecated as of 2.3.0 and will be removed in 3.0.0. the EventLog class will be removed in a future release. lf = pm4py.filter_log(lambda t: len(t) > 5, log1) C:\Users\oZZo\AppData\Local\Programs\Python\Python311\Lib\site-packages\pm4py\hof.py:48: UserWarning: input log object not of appropriate type, filter() not applied warnings.warn('input log object not of appropriate type, filter() not applied')"

fit-alessandro-berti commented 1 year ago

Dear @skyocean

Thanks for signaling. We will fix the notebook(s) in the upcoming release.

fit-alessandro-berti commented 1 year ago

Dear @skyocean

We fixed the provided notebooks