I have an numpy array of form
a = [1,2,3]
which I want to save to a .txt file such that the file looks like:
1 2 3
If I use numpy.savetxt then I get a file like:
1
2
3
There should be a easy solution to this I suppose, any suggestions?
question from:https://stackoverflow.com/questions/9565426/saving-numpy-array-to-txt-file-row-wise