Ensure that the high_column_name column is greater than the low_column_name one.
The transformation works by creating a column with the difference between the
high_column_name and low_column_name columns and storing it in the
high_column_name’s place. The reverse transform adds the difference column
and the low_column_name to reconstruct the high_column_name.
low_column_name (str) – Name of the column that contains the low values.
high_column_name (str) – Name of the column that contains the high values.
strict_boundaries (bool) – Whether the comparison of the values should be strict >= or
not >. Defaults to False.
Initialize self. See help(type(self)) for accurate signature.
Get only the rows that are valid.
Fit Constraint class to data.
Fit this Constraint to the data and then transform it.
Build a Constraint object from a dict.
Check whether high is greater than low in each row.
Handle logic around reverse transforming constraints.
Return a dict representation of this Constraint.
Perform necessary transformations needed by constraint.