f=open("kymmerida.csv", "r") #terve csv m=[] for rida in f: m.append([float(jaam) for jaam in rida[:-2].replace(",", ".").split(";")]) f.close() m2=[ [ m[v][r] for v in range(len(m)) ] for r in range(len(m[0])) ] f2=open("p88ratud3.csv", "w") for r in m2: f2.write(";".join([str(x).replace(".", ",") for x in r])+"\n") f2.close()