Danger

You are looking at the documentation for an older version of the SDV! We are no longer supporting or maintaining this version of the software

Click here to go to the new docs pages.

sdv.constraints.Constraint.is_valid

Constraint.is_valid(table_data)[source]

Say whether the given table rows are valid.

This is a dummy version of the method that returns a series of True values to avoid dropping any rows. This should be overwritten by all the subclasses that have a way to decide which rows are valid and which are not.

Parameters

table_data (pandas.DataFrame) – Table data.

Returns

Series of True values

Return type

pandas.Series