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

Error converting event stream to log #63

Closed zdhiman closed 5 years ago

zdhiman commented 5 years ago

log = conversion_factory.apply(event_stream)

KeyError: 'case:concept:name'

Please see full code

Javert899 commented 5 years ago

Hi,

You have to specify the column that acts as case ID in the parameters

Example script:

from pm4py.objects.log.importer.csv import factory as csv_importer from pm4py.objects.conversion.log import factory as conversion_factory from pm4py.util import constants

stream = csv_importer.apply("C:\road_traffic.csv") log = conversion_factory.apply(stream, parameters={constants.PARAMETER_CONSTANT_CASEID_KEY: "case"})