I have a dataframe that looks like the following:
| A | B | C | D | tag |
0 | 0.1 | 0.2 | 0.3 | 1.0 | a |
1 | 0.1 | 0.2 | 0.3 | 1.0 | b |
2 | 0.1 | 0.2 | 0.3 | 1.0 | c |
Is there a way to transform it to the following:
tag | a | b | c |
A | 0.1 | 0.1 | 0.1 |
B | 0.2 | 0.2 | 0.2 |
C | 0.3 | 0.3 | 0.3 |
D | 1.0 | 1.0 | 1.0 |