pm4py.statistics.overlap.cases.pandas.get module#

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

Bases: Enum

TIMESTAMP_KEY = 'pm4py:param:timestamp_key'#
START_TIMESTAMP_KEY = 'pm4py:param:start_timestamp_key'#
CASE_ID_KEY = 'pm4py:param:case_id_key'#
pm4py.statistics.overlap.cases.pandas.get.apply(df: DataFrame, parameters: Dict[str | Parameters, Any] | None = None) List[int][source]#

Computes the case overlap statistic from a Pandas dataframe

Parameters:
  • df – Dataframe

  • parameters – Parameters of the algorithm, including: - Parameters.TIMESTAMP_KEY => attribute representing the completion timestamp - Parameters.START_TIMESTAMP_KEY => attribute representing the start timestamp

Returns:

List associating to each case the number of open cases during the life of a case

Return type:

case_overlap