query_annotated

ketos.data_handling.selection_table.query_annotated(selections, annotations, 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.

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:
df1,df2: tuple(pandas DataFrame, pandas DataFrame)

Selection table and annotation table