assert_index()

audformat.assert_index(obj)[source]

Assert object is conform to table specifications.

This does not check for duplicates in the index. If you need that check use audformat.assert_no_duplicates() in addition.

Parameters

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

Raises

ValueError – if not conform to table specifications