I have the following Dataframe:
| Timestamp | participant | level | gold | participant | level | gold |
|---|---|---|---|---|---|---|
| 1 | 1 | 100 | 6000 | 2 | 76 | 4200 |
| 2 | 1 | 150 | 5000 | 2 | 120 | 3700 |
I am trying to change the Dataframe so that all rows from columns named the same is moved below each other, while keeping the column named timestamp:
| Timestamp | participant | level | gold |
|---|---|---|---|
| 1 | 1 | 100 | 6000 |
| 2 | 1 | 150 | 5000 |
| 1 | 2 | 76 | 4200 |
| 2 | 2 | 120 | 3700 |
To be clear, the example above is a small sample, the actual Dataframe has a lot of columnes named the same, and a lot more rows. Hence, the solution needs to take that in to account.
Thanks!