normalize_source_patch_key

function of dascore.core.summary source

normalize_source_patch_key(
    value: Any ,
)-> ‘str’

Return a source patch key as a string, or “” when missing.

Normalize None, empty strings, pandas NaN/NaT, and numpy scalars here: NaN is truthy, so value or "" does not handle missing keys.