I have this sample dataframe,

```
      A       B       Date       C
0   83.04   82.70   01012019    0.0
1   83.04   82.71   01012019    3.0
2   83.02   82.70   02012019    0.0
3   83.02   82.69   02012019    5.0
4   82.98   82.67   03012019    2.0
5   81.28   79.61   03012019    3.0

```

When I use this code

```
output = combined.assign(Period=df.groupby('Date').cumcount()).pivot(index='Period', columns='Date',values=['A','B','C'])

```

I received a new dataframe with the wrong column header (I want date to be the column)

[![enter image description here](https://i.stack.imgur.com/G4q6Q.png)](https://i.stack.imgur.com/G4q6Q.png)

How am I able to swap the first row and second row so that the second row can be the column?