I have a table with only one row of data.
| index | A | B | C |
|---|---|---|---|
| 0 | 20 | 30 | 50 |
I need to transpose it for presenting in a table:
| Data Point | Value |
|---|---|
| A | 20 |
| B | 30 |
| C | 50 |
I've tried using df.transpose() but I end up with the index value as header for both columns:
| 0 | |
|---|---|
| A | 20 |
| B | 30 |
| C | 50 |
Should I be trying to add a column or rename the index first? Any help would be appreciated.