DataFilter#
- class DataFilter#
A dictionary that defines a filter for a dataframe.
- Parameters
- columnstr
The name of the column to filter on, column can be a feature or an additional-data column.
- operatorOperatorsEnum
The operator to use for the filter by the value.
- valuet.Any
The value to use as reference.
Examples
Data filter to filter out values smaller or equal to 5 on the column ‘feature1’
>>> from deepchecks_client import DataFilter, OperatorsEnum >>> filter = DataFilter(column='feature1', operator=OperatorsEnum.GE, value=5)
- __init__(*args, **kwargs)#
- __new__(*args, **kwargs)#
Attributes
Methods
|
Create a new dictionary with keys from iterable and values set to value. |
|
Return the value for key if key is in the dictionary, else default. |
|
If the key is not found, return the default if given; otherwise, raise a KeyError. |
Remove and return a (key, value) pair as a 2-tuple. |
|
|
Insert key with a value of default if key is not in the dictionary. |
|
If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] |