is_filewise_index()

audformat.is_filewise_index(obj)[source]

Check if object has a filewise index.

Returns True if index is a filewise index conform to table specifications.

Parameters

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

Return type

bool

Returns

True if index is filewise, otherwise False

Examples

>>> is_filewise_index(filewise_index())
True
>>> is_filewise_index(pd.Index([]))
False