pandas read rotated csv files
- by EricCoding
Is there any function in pandas that can directly read a rotated csv file?
To be specific, the header information in the first col instead of the first row.
For example:
A 1 2
B 3 5
C 6 7
and I would like the final DataFrame this way
A B C
1 3 5
2 5 7
Of corse we can get around this problem using some data wangling techniques like transpose and slicing. I am wondering there should be a quick way in API but I could not find it.