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

data frame to event log conversion is wrong #87

Closed s-j-v-zelst closed 5 years ago

s-j-v-zelst commented 5 years ago

the data frame to event log conversion seems to return an event stream obejct rather than a event log object.

Javert899 commented 5 years ago

Seemingly debunked:

SCRIPT from pm4py.objects.log.adapters.pandas import csv_import_adapter from pm4py.objects.conversion.log import factory as log_conv_factory

df = csv_import_adapter.import_dataframe_from_path("C:\running-example.csv") print(type(df)) log = log_conv_factory.apply(df) print(type(log))

OUTPUT <class 'pandas.core.frame.DataFrame'> <class 'pm4py.objects.log.log.EventLog'>

s-j-v-zelst commented 5 years ago

indeed, I double checked the code, it was a false alarm.