pm4py.statistics.rework.pandas.get module#

class pm4py.statistics.rework.pandas.get.Parameters(*values)[source]#

Bases: Enum

ACTIVITY_KEY = 'pm4py:param:activity_key'#
CASE_ID_KEY = 'pm4py:param:case_id_key'#
pm4py.statistics.rework.pandas.get.apply(df: DataFrame, parameters: Dict[str | Parameters, Any] | None = 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.

Parameters:
  • 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

Returns:

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

Return type:

dict