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