I´m trying to transpose a matrix from a csv-file with the following code:
import csv
from itertools import izip
a = izip(*csv.reader(open("TDM.csv", "rb")))
csv.writer(open("output.csv", "wb")).writerows(a)
Unfortunately the following error occurs:
from itertools import izip
ImportError: cannot import name 'izip'
I already looked through the forums but couldn´t find the right answer for me.