add_index_level

ketos.audio.annotation.add_index_level(df, key=0)[source]

Ensure the DataFrame has at least two indexing levels.

Args:
df: pandas DataFrame

Input DataFrame

Returns:
df: pandas DataFrame

Output DataFrame