What I have:
HEADER_0 | … | HEADER_N
---------------- | … | ----------------
DATA_0_0 | … | DATA_N_M
What I need: a function that inverts my table to:
HEADER_0 | DATA_0_0, …, DATA_0_M
…
HEADER_N | DATA_N_0, …, DATA_N_M
is there any way to achieve this: I know that I could just change the pd.DataFrame but then I’d lose the style of
the heading that I’d want vertically as it is horizontally by default.