pm4py.stats.get_trace_attribute_values#
- pm4py.stats.get_trace_attribute_values(log: EventLog | DataFrame, attribute: str, case_id_key: str = 'case:concept:name') Dict[str, int] [source]#
Returns the values for a specified trace attribute
- Parameters:
log – Log object
attribute (
str
) – Attributecase_id_key (
str
) – attribute to be used as case identifier
- Return type:
Dict[str, int]
import pm4py tr_attr_values = pm4py.get_trace_attribute_values(dataframe, 'case:attribute', case_id_key='case:concept:name')