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

InBins

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

Bases: CategoryCriteria

Categories: dq-operator

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

Examples

InBins(column_name="value_category", bins={0, 1, 2, "underflow"})

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