pm4py.stats.get_event_attribute_values#
- pm4py.stats.get_event_attribute_values(log: EventLog | DataFrame, attribute: str, count_once_per_case: bool = False, case_id_key: str = 'case:concept:name') Dict[str, int] [source]#
Returns the values and their frequencies for a specified event attribute.
- Parameters:
log – Log object (EventLog or pandas DataFrame).
attribute (
str
) – The event attribute to analyze.count_once_per_case (
bool
) – If True, count each attribute value at most once per case.case_id_key (
str
) – Attribute to be used as the case identifier.
- Returns:
A dictionary mapping attribute values to their frequencies.
import pm4py activities = pm4py.get_event_attribute_values( dataframe, 'concept:name', case_id_key='case:concept:name' )