pm4py.statistics.passed_time.pandas.algorithm module#

class pm4py.statistics.passed_time.pandas.algorithm.Variants(*values)[source]#

Bases: Enum

PRE = <module 'pm4py.statistics.passed_time.pandas.variants.pre' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/statistics/passed_time/pandas/variants/pre.py'>#
POST = <module 'pm4py.statistics.passed_time.pandas.variants.post' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/statistics/passed_time/pandas/variants/post.py'>#
PREPOST = <module 'pm4py.statistics.passed_time.pandas.variants.prepost' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/statistics/passed_time/pandas/variants/prepost.py'>#
pm4py.statistics.passed_time.pandas.algorithm.apply(df: DataFrame, activity: str, variant=Variants.PRE, parameters: Dict[Any, Any] | None = None) Dict[str, Any][source]#

Gets statistics on execution times of the paths to/from the activity

Parameters:
  • df – Dataframe

  • activity – Activity

  • variant

    Variant:
    • Variants.PRE

    • Variants.POST

    • Variants.PREPOST

  • parameters – Possible parameters of the algorithm

Returns:

Dictio containing the times from/to the activity

Return type:

dictio