i do have a Pandas df like (df1):

```
     0 1 2  3   4  5
   0 a b c  d   e  f
   1 1 4 7  10  13 16
   2 2 5 8  11  14 17
   3 3 6 9  12  15 18

```

and i want to generate an Dataframe like (df2):

```
   0  1  2 
0  a  b  c
1  1  4  7
2  2  5  7 
3  3  6  9
4  d  e  f 
5  10 13 16
6  11 14 17
7  12 15 18

```

additional information about the given df:

1. shape of given df ist unknown. b = df1.shape() -> b = [n,m]
2. it is a given fact the width of df1 is divisble by 3

i did try stack, melt and wide\_to\_long. By using stack the order of the rows is lost, the rows should behave as shown in exmeplary df2 . I would really appreciate any help.

Kind regards Hans