anndict.utils.normalize_label

anndict.utils.normalize_label#

anndict.utils.normalize_label(label)[source]#

Calls normalize-string and handles NaN values.

Parameters:
label str

Label to be normalized.

Return type:

str

Returns:

Normalized string.

Examples

normalize_label("Hello, World!")
> "hello world"
normalize_label(np.nan)
> "missing"