query

ketos.data_handling.selection_table.query(selections, annotations=None, filename=None, label=None, start=None, end=None)[source]

Query selection table for selections from certain audio files and/or with certain labels.

Args:
selections: pandas DataFrame

Selections table

annotations: pandas DataFrame

Annotations table. Optional.

filename: str or list(str)

Filename(s)

label: int or list(int)

Label(s)

start: float

Earliest end time in seconds

end: float

Latest start time in seconds

Returns:

: pandas DataFrame or tuple(pandas DataFrame, pandas DataFrame) Selection table, accompanied by an annotation table if an input annotation table is provided.