aggregate_duration

ketos.data_handling.selection_table.aggregate_duration(table, label=None)[source]

Compute the aggregate duration of the annotations.

Overlapping segments are only counted once.

Args:
table: pandas DataFrame

Annotations table or Selections table

label: int or list(int)

Label(s). Optional

Returns:
agg_dur: float

Aggregate duration in seconds