I have a dataframe like this:
index A B C
01.01.2000 a1 b1 c1
01.02.2000 a2 b2 c2
01.03.2000 a3 b3 c3
and would like to get this:
index X
(0, 01.01.2000) a1
(0, 01.02.2000) a2
(0, 01.03.2000) a3
(1, 01.01.2000) b1
(1, 01.02.2000) b2
(1, 01.03.2000) b3
(2, 01.01.2000) c1
(2, 01.02.2000) c2
(2, 01.03.2000) c3
I need it this way to run the data through some regression models. The pandas docs on multi indexing unfortunately are very confusing to me as I'm new to this. Thank you!