pysurfline.utils.flatten
- pysurfline.utils.flatten(d: dict, parent_key: str = '', sep: str = '_') dict
Recursively flattens a nested dictionary.
- Parameters
d (dict) – The dictionary to flatten.
parent_key (str) – The parent key to use for the flattened keys.
sep (str) – The separator to use between keys.
- Returns
The flattened dictionary.
- Return type
dict