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

NotInBins

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

Bases: CategoryCriteria

Categories: dq-operator

A category criteria that selects rows whose bin is not among the given bins. Use with Filter, Select or Fail.

Examples

Filter(NotInBins(column_name="amount_bin", bins={0, 1, 2}))

The special bins catch the values that fell outside the scale:

NotInBins(
column_name="amount_bin",
bins={"none", "nan", "underflow", "overflow"},
)

Parameters

parameter
column_nameColumnNameSpec (str)

Name of the column holding the bin index a ScaleCategorizer produced.

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

Methods

method
to_dict
def to_dict() -> dict[str, Any]

method
to_json
def to_json(indent: int | None = None) -> str

Parameters:

parameter
indentint | None

method
from_dict
def from_dict(d: dict[str, Any]) -> Any

Parameters:

parameter

method
from_json
def from_json(s: str | bytes) -> Any

Parameters:

parameter