I have created comprehension expression referring to this page converting stacked dataframe to specified dictionary format.
dict_data = [{'Construction': i, j: k} for (i, j), k in stacked.items()]
I tried to incorporate OrderedDict
referring to this page
Changing to below.
dict_data = [OrderedDict(('Construction': i, j: k) for (i, j), k in stacked.items())]
but I get invalid syntax error
Could anyone tell me how should I fix this expression to incorporate with OrderedDict?