pyufunc.dict_unflatten#

pyufunc.dict_unflatten(mapping, *, separator='_')#

Unflatten a dictionary.

Parameters:
  • mapping – Flattened mapping.

  • separator – Separator between nested key parts.

Note

Example

>>> dict_unflatten({"a_b": 1})
{'a': {'b': 1}}
Returns:

Nested dictionary.

Return type:

dict[str, Any]