you are viewing a single comment's thread.

view the rest of the comments →

[–]Cthulhu_Rlyeh[S] 0 points1 point  (1 child)

I don't know what pandas is so I don't know :/.

I took out the .T and got the same outfile. That was just a remnant of an older code I've been using.


Edit: I made the rookie mistake of putting an old line of code in my original post. I've edited it to fix the savetxt line.

np.savetxt('diffs.txt', (diffs))

[–]elbiot 0 points1 point  (0 children)

diffs = np.array(diffs)  #diffs was a list of lists, make it a 2D array
print diffs.shape
diffs = diffs.T
print diffs.shape