cast_to_str
- ketos.data_handling.selection_table.cast_to_str(labels, nested=False)[source]
Convert every label to str format.
If nested is set to True, a flattened version of the input list is also returned.
- Args:
- labels: list
Input labels
- nested: bool
Indicate if the input list contains (or may contain) sublists. False by default. If True, a flattened version of the list is also returned.
- Results:
- labels_str: list
Labels converted to str format
- labels_str_flat: list
Flattened list of labels. Only returned if nested is set to True.