I have a dictionary in the form:
dict = {'A1' : {'B1' : {'Average' : 0 , 'Max' : 0, 'Min' : 0},
'B2' : {'Average' : 0 , 'Max' : 0, 'Min' : 0},
'B3' : {'Average' : 0 , 'Max' : 0, 'Min' : 0}},
'A2' : {'B1' : {'Average' : 0 , 'Max' : 0, 'Min' : 0},
'B2' : {'Average' : 0 , 'Max' : 0, 'Min' : 0},
'B3' : {'Average' : 0 , 'Max' : 0, 'Min' : 0}}}
and I would like to get a data frame that looks like this:
B1 B2 B3
Average Max Min Average Max Min Average Max Min
Region
A1 0 0 0 0 0 0 0 0 0
A2 0 0 0 0 0 0 0 0 0
I have tried several answers but none of them give me the data frame the way I want it. Can anybody please help? I'm quite stuck. Thanks.