I have the below table taken online through pandas.read_html
Column0 Column1 Column2 Column3
0 Entry_1 0.685 Record_1 0.69-S$ 0.685
1 Entry_2 0.036 Record_2 0.685
2 Entry_3 05/Jul/2016 Record_3 0.72-S$ 0.4
3 Entry_4 0.338 Record_4 178.8 mm
4 Entry_5 0.41 Record_5 0.06
5 Entry_6 122.48 Record_6 17.29%
6 Entry_7 0.5 Record_7 0.58 as of 05/Jul/2016
How do I pviot / transpose this data such that Column 0
becomes the headers, and Column 1
becomes the values. Similarly for Column 2
and Column 3
?