is_standardized

ketos.data_handling.selection_table.is_standardized(table, has_time=False, verbose=True)[source]

Check if the table has the correct indices and the minimum required columns.

Args:
table: pandas DataFrame

Annotation table.

has_time: bool

Require time information for each annotation, i.e. start and stop times.

verbose: bool

If True and the table is not standardized, print a message with an example table in the standard format.

Returns:
res: bool

True if the table has the standardized Ketos format. False otherwise.