vantage6.algorithm.tools.preprocessing.functions.filter_range#
- filter_range(df, column, min_=None, max_=None, include_min=False, include_max=False)#
Filter the data based on a minimum and/or maximum value.
- Parameters:
df (pandas.DataFrame) – The data to filter.
column (str) – The column to filter on.
min (float, optional) – The minimum value to filter on, by default None.
max (float, optional) – The maximum value to filter on, by default None.
include_min (bool, optional) – Whether to include the minimum value, by default False.
include_max (bool, optional) – Whether to include the maximum value, by default False.
- Returns:
The filtered data.
- Return type:
pandas.DataFrame