filewise_index()

audformat.filewise_index(files=None)[source]

Creates a filewise index.

Index is conform to table specifications.

Parameters

files (Union[str, Sequence[str], Index, Series, None]) – list of files

Return type

Index

Returns

filewise index

Raises

ValueError – if created index contains duplicates

Examples

>>> filewise_index(["a.wav", "b.wav"])
Index(['a.wav', 'b.wav'], dtype='string', name='file')