fit_a_nef.utils.flatten_dict

fit_a_nef.utils.flatten_dict(d: Dict, separation: str = '.')

Flattens a dictionary.

Parameters:
  • d (Dict) – The dictionary to flatten.

  • separation (str, optional) – The separation character, defaults to “.”.

Returns:

The flattened dictionary.

Return type:

Dict