Ask a question to get started
Enter to sendā¢Shift+Enter new line
flatten_dict( nested_dict: Dict[str, Any], parent_key: str = '', sep:
nested_dict
dict
parent_key
str
''
sep
'_'
Flatten a nested dictionary into a flat dictionary.
The nested dictionary to flatten.
The prefix to prepend to the keys of the flattened dict.
The separator to use between the parent key and the key of the flattened dictionary.