cfitall.utils.flatten_dict

flatten_dict(nested)

Flattens a deeply nested dictionary into a flattened dictionary. For example {‘foo’: {‘bar’: ‘baz’}} would be flattened to {‘foo.bar’: ‘baz’}.

Parameters

nested (dict) – dictionary to flatten

Return type

dict