I have a dataframe
       0     1       2     3   ............  1041   1042   1043
0    32.5   19.4   66.6   91.4               55.5   10.4   77.2   
1    13.3   85.3   22.4   65.8               23.4   90.2   14.5   
2    22.4   91.7   57.1   23.5               58.2   81.5   46.7   
3    75.7   47.1   91.4   45.2               89.7   38.7   78.3   
.
.
.
.
18   32.5   23.4   90.2   14.5               91.7   57.1   23.5   
19   56.7   58.2   81.5   46.7               65.5   43.4   76.2   
20   76.8   19.4   66.6   91.4               54.9   60.4   96.4   
the dataframe has 20 rows and 1044 columns. i want to append/concat 2nd row with first row and 4th row with 3rd row and 6th row with 5th row and so on. in this way, the dataframe will become 10 rows and 2088 columns.
After this, from 0 to 1043 columns label should be rename as x1,x2,x3, ...., x1043 and from 1044 to 2083 columns should be rename as y1,y2,y3,.... , y20837. Now the updated dataframe looks like as follow
      X0    X1    X2 .... X1042  X1043   Y0    Y1    Y2 .... Y2086    Y2087         
0    32.5  19.4  66.6 ... 10.4   77.2   13.3  85.3  22.4 ...  90.2    14.5
1    22.4  91.7  57.1 ... 81.5   46.7   75.7  47.1  91.4 ...  38.7    78.3 
.
.
.
.
10   56.7  58.2  81.5 ... 43.4   76.2   76.8   19.4  66.6 ... 60.4   96.4 
how to do achieve these two tasks? I have tried a lot (using append/concat/join functions) but still unsuccessful to do this.
 
     
    