I generate the following DataFrame by my optimization Results, using multiindex:
hour 0 1 2
Scenario plant
0 A 0,0831 0,08124 0,08124
B 0,5 0,5 0,5
C 0,4599 0,31246 0,16786
D 0 0 0
But since I might want to transform it in Excel in a Pivot-Table, it would be better to have the index "Scenario" in every row like:
hour 0 1 2
Scenario plant
0 A 0,0831 0,08124 0,08124
0 B 0,5 0,5 0,5
0 C 0,4599 0,31246 0,16786
0 D 0 0 0
Does anyone know how to solve this problem?