pm4py.statistics.rework.pandas package


pm4py.statistics.rework.pandas.get module

class pm4py.statistics.rework.pandas.get.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
CASE_ID_KEY = 'case_id_glue'
pm4py.statistics.rework.pandas.get.apply(df: pandas.core.frame.DataFrame, parameters: Optional[Dict[str, Any]] = None) → Dict[str, int][source]

Associates to each activity (with at least one rework) the number of cases in the log for which the rework happened.

  • df – Dataframe

  • parameters – Parameters of the algorithm, including: - Parameters.ACTIVITY_KEY => the attribute to be used as activity - Parameters.CASE_ID_KEY => the attribute to be used as case ID


Dictionary associating to each activity the number of cases for which the rework happened

Return type


Module contents