pm4py.statistics.rework.log.get module#

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

Bases: Enum

ACTIVITY_KEY = 'pm4py:param:activity_key'#
pm4py.statistics.rework.log.get.apply(log: EventLog | EventStream, 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:
  • log – Event log

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

Returns:

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

Return type:

dict