pm4py.statistics.overlap.cases.pandas package

Submodules

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

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

Bases: enum.Enum

An enumeration.

CASE_ID_KEY = 'case_id_glue'
START_TIMESTAMP_KEY = 'pm4py:param:start_timestamp_key'
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'
pm4py.statistics.overlap.cases.pandas.get.apply(df: pandas.core.frame.DataFrame, parameters: Optional[Dict[str, Any]] = 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

Module contents