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