Mar-02-2019, 07:13 AM
If this is not an assignment, you can use pandas.
The code would be something like this:
The code would be something like this:
import pandas as pd data = pd.read_csv('your_file.csv', sep=' ') # check additional options,e.g. header, etc. data.T # rotated data data.T.to_csv('output.csv') # save rotated data to a file