pm4py.stats.get_event_attribute_values(log: Union[EventLog, DataFrame], attribute: str, count_once_per_case=False, case_id_key: str = 'case:concept:name') Dict[str, int][source]#

Returns the values for a specified (event) attribute

  • log – Log object

  • attribute (str) – attribute

  • count_once_per_case (bool) – If True, consider only an occurrence of the given attribute value inside a case (if there are multiple events sharing the same attribute value, count only 1 occurrence)

  • case_id_key (str) – attribute to be used as case identifier

Return type:

Dict[str, int]

import pm4py

activities = pm4py.get_event_attribute_values(dataframe, 'concept:name', case_id_key='case:concept:name')