cfitall.utils.expand_flattened_dict

expand_flattened_dict(flattened, separator='.')

Expands a flattened dict into a nested dict, e.g. {‘foo.bar’: ‘baz’} to {‘foo’: {‘bar’: ‘baz’}}.

Parameters
  • flattened (dict) – dictionary with flattened keys to expand

  • separator (str) – separator between dict keys in flattened_path

Return type

dict