I have a dataframe:
col1 col2 col3 col4 col5 col6 col7 col8 col9
a1 b1 c1 d1 e1 f1 g1 h1 i1
a2 b2 c2 d2 e2 f2 g2 h2 i2
I want to to turn every three column into rows:
col1 col2 col3
a1 b1 c1
a2 b2 c2
d1 e1 f1
d2 e2 f2
g1 h1 i1
g2 h2 i2
how to do that?