pm4py.statistics.variants.pandas.get module#
- pm4py.statistics.variants.pandas.get.get_variants_count(df: DataFrame, parameters: Dict[Any, Any] | None = None) Dict[str, int] | Dict[List[str], int][source]#
Gets the dictionary of variants from the current dataframe
- Parameters:
df – Dataframe
parameters –
- Possible parameters of the algorithm, including:
Parameters.ACTIVITY_KEY -> Column that contains the activity
- Returns:
Dictionary of variants in the log
- Return type:
variants_set
- pm4py.statistics.variants.pandas.get.get_variants_set(df: DataFrame, parameters: Dict[Any, Any] | None = None) Set[str] | Set[List[str]][source]#
Gets the set of variants from the current dataframe
- Parameters:
df – Dataframe
parameters –
- Possible parameters of the algorithm, including:
Parameters.ACTIVITY_KEY -> Column that contains the activity
- Returns:
Set of variants in the log
- Return type:
variants_set