CategoryCriteria
class CategoryCriteria(column_name: ColumnNameSpec, bins: BinsCriteriaSpec)
Categories: dq-operator
Abstract base for criteria over a categorizer's bin assignments.
Examples
The concrete category criteria are InBins and NotInBins:
InBins(column_name="amount_bin", bins={0, 1})
NotInBins(column_name="amount_bin", bins={"overflow"})
Parameters
parameter
column_nameColumnNameSpec (str)Name of the column holding the bin index produced by a
ScaleCategorizer.
parameter
binsBinsCriteriaSpec (frozenset[StrictInt | Literal['none', 'nan', 'underflow', 'overflow']])Bins to match; a non-empty set of bin indices (0 to 100) and/
or the special bins "none", "nan", "underflow" and
"overflow".