label_occurrence
- ketos.data_handling.selection_table.label_occurrence(table)[source]
Identify the unique labels occurring in the table and determine how often each label occurs.
The input table must have the standardized Ketos format, see
data_handling.selection_table.standardize()
. In particular, each annotation should have only a single label value.- Args:
- table: pandas DataFrame
Input table.
- Results:
- occurrence: dict
Dictionary where the labels are the keys and the values are the occurrences.