I have a pandas DataFrame like the following:
c d
a {'e': 1, 'f': 2} 2
b {'e': 3, 'f': 4} 5
I would now like to expand the dictionaries in the cells to two sub-columns in a multiindex dataframe, like so:
c d
e f
a 1 2 2
b 3 4 5
How do I best do this?