assert_no_duplicates()

audformat.assert_no_duplicates(obj)[source]

Assert object contains no duplicates in its index.

The table specifications allow no duplicated index entries. To save time we do not test for this in audformat.assert_index().

Parameters

obj (Union[Index, Series, DataFrame]) – object

Raises

ValueError – if duplicates are found