lyse.dataframe_utilities.flatten_dict

lyse.dataframe_utilities.flatten_dict(dictionary, keys=())[source]

Takes a nested dictionary whose keys are strings, and returns a flat dictionary whose keys are tuples of strings, each element of which is the key for one level of the hierarchy.