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.OneHotEncoding.is_valid

OneHotEncoding.is_valid(table_data)[source]

Check whether the data satisfies the one-hot constraint.

Parameters

table_data (pandas.DataFrame) – Table data.

Returns

Whether each row is valid.

Return type

pandas.Series