sdv.constraints.Unique.is_valid

Unique.is_valid(table_data)[source]

Get indices of first instance of unique rows.

If a row is the first instance of that combination of column values, it is valid. Otherwise it is false.

Parameters

table_data (pandas.DataFrame) – Table data.

Returns

Whether each row is valid.

Return type

pandas.Series