is_segmented_index()¶
- audformat.is_segmented_index(obj)[source]¶
Check if object has a segmented index.
Returns
Trueif index is a segmented index conform to table specifications.- Parameters:
- Return type:
- Returns:
Trueif index is segmented, otherwiseFalse
Examples
>>> is_segmented_index(segmented_index()) True >>> is_segmented_index(pd.Index([])) False