pm4py.algo.filtering.pandas.between.between_filter module#
- class pm4py.algo.filtering.pandas.between.between_filter.Parameters(*values)[source]#
Bases:
Enum- ACTIVITY_KEY = 'pm4py:param:activity_key'#
- CASE_ID_KEY = 'pm4py:param:case_id_key'#
- SUBCASE_CONCAT_STR = 'subcase_concat_str'#
- pm4py.algo.filtering.pandas.between.between_filter.apply(df: DataFrame, act1: str | List[str], act2: str | List[str], parameters: Dict[str | Parameters, Any] | None = None) DataFrame[source]#
Given a dataframe, filters all the subtraces going from an event with activity “act1” to an event with activity “act2”
- Parameters:
df – Dataframe
act1 – First activity (or collection of activities)
act2 – Second activity (or collection of activities)
parameters – Parameters of the algorithm, including: - Parameters.ACTIVITY_KEY => activity key - Parameters.CASE_ID_KEY => case id - Parameters.SUBCASE_CONCAT_STR => concatenator between the case id and the subtrace index in the filtered df
- Returns:
Dataframe with all the subtraces going from “act1” to “act2”
- Return type:
filtered_df