Skip to main content
GuideServerConfigure and deploy Tabsdata servers on your machine.TutorialsConfigure data integration workflows within a running Tabsdata server.Advanced TutorialsBuild end-to-end workflows between two specific systems.API ReferenceCLI ReferenceRelease Notes
Version: 2.0.0

CategoryCriteria

class
class CategoryCriteria(column_name: ColumnNameSpec, bins: BinsCriteriaSpec)

Bases: Criteria, ABC

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".