I have stacked dataframe as below. I tried to convert to the dictionary using to_dict()
command. However, I got the following error.
TypeError: key ('PODIUM WINDOW', 'SHGC value') is not a string
Can anyone tell me what should I do further for this stacked dataframe to convert to the dictionary as below?
[{"Construction":"Office Window","U-value[W/m2-K]":1.63},{"Construction":"Office Window","SHGC value":0.22},{"Construction":"Podium Window","U-value[W/m2-K]":5.48},{"Construction":"Podium Window","SHGC value":0.70}]
stacked dataframe
Construction
OFFICE WINDOW U-value[W/m2-K] 1.63
SHGC value 0.22
PODIUM WINDOW U-value[W/m2-K] 5.48
SHGC value 0.70