dbldatagen.constraints.positive_values module
This module defines the Positive class
- class PositiveValues(columns, strict=False)[source]
Bases:
NoPrepareTransformMixin
,Constraint
Positive Value constraints
Applies constraint to ensure columns have positive values
- Parameters:
columns – string column name or list of column names as strings
strict – if strict is True, the zero value is not considered positive
Essentially applies the constraint that the named columns must be greater than equal zero or greater than zero if strict has the value True