I have an issue with my data frame. I have a pandas data frame with MultiIndex Columns, so it means that in my data frame header I have tuples like ("A", 123"), ("B", 456"), ("C", 789). And I would like to create from this tuple 2 rows in the way that data frame will look like:
"A" | "B" | "C" |
---|---|---|
123 | 456 | 789 |
row | row | row |
row | row | row |
row | row | row |
There are two possibilities for me. I can have a header in 2 rows, or I can have just one header but in 1 row after header, I will have my 2nd tuple element.
Can you help me with that? I tried dropping level but it didn't work.