Closed Catadanna closed 6 months ago
Dear @Catadanna ,
Can you print the columns of the dataframe?
print(event_log.columns)
I think you do not have 'org;resource' among the attributes of your event log.
I do not have org:ressource
among the columns. I have time:timestamp
and concept:name.
Do I have to declare org:resource
?
Here are my columns :
Index(['name', 'taskId', 'complexity', 'retries', 'start_timestamp', 'end_timestamp',
'variant_instance_id', 'task_rank', 'variant_name',
'status', 'case:concept:name', 'concept:name', 'time:timestamp',
'@@index', '@@case_index'],
dtype='object')
I use Python 3.10 and pm4py version 2.7.10.1.
You can apply the get_event_attribute_values only for the attributes (columns of the CSV) that are in the file.
That is what I did. I sent you the column names. What shall I do ? The library adds time:timestamp
as column names why don't I have org:resource
?
I apply this :
print("Ressources", resources)
And the result is :
Ressources {}
Hallo,
I have a problem filtering according to attributes. I load my data in a dataframe from a csv file. I have attributes such as 'participant', 'complexity', etc.
Here is my code :
The print here is an empty dict.
On the other hand, if I do this, I get the activities, it is OK :
activities = pm4py.get_event_attribute_values(event_log, "concept:name")
Here is the error I get:
The problem concerns accessing the attributes. Please investigate or tell me where is the problem.
Thank you in advance.