How to solve the value error received while working with this dictionary?
How to solve the value error received while working with this dictionary? Question: I have a dataframe from which the columns are grouped as: {(a, b, c): [(‘d’, e, f)]} with this command: dct = df.groupby([‘a’,’b’,’c’])[[‘d’,’e’,’f’]].apply( lambda g: list(map(tuple, g.values.tolist()))).to_dict() After this, I apply: dct = {k: dict(v) for k,v in dct.items()} which gives me …