pm4py.algo.filtering.pandas.paths package

Submodules

pm4py.algo.filtering.pandas.paths.paths_filter module

class pm4py.algo.filtering.pandas.paths.paths_filter.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ATTRIBUTE_KEY = 'pm4py:param:attribute_key'
CASE_ID_KEY = 'case_id_glue'
DECREASING_FACTOR = 'decreasingFactor'
POSITIVE = 'positive'
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'
pm4py.algo.filtering.pandas.paths.paths_filter.apply(df, paths, parameters=None)[source]

Apply a filter on traces containing / not containing a path

Parameters
  • df – Dataframe

  • paths – Paths to filter on

  • parameters

    Possible parameters of the algorithm, including:

    Parameters.CASE_ID_KEY -> Case ID column in the dataframe Parameters.ATTRIBUTE_KEY -> Attribute we want to filter Parameters.POSITIVE -> Specifies if the filter should be applied including traces (positive=True) or excluding traces (positive=False)

Returns

Filtered dataframe

Return type

df

pm4py.algo.filtering.pandas.paths.paths_filter.apply_auto_filter(df, parameters=None)[source]

Module contents