Using numpy.savetxt
saves the data as a continuous line, how can I preserve the shape of array?
Example:
arr = np.array([[1,'some',3,4],
[5,'wo,dy',7,8],
[9,'word',11,12]])
np.savetxt('example.csv',arr,fmt=('%s'),delimiter='\t')
(why tab delimited? - some of the real text has commas in it)
example.csv looks like this:
1 some -3.0 4 5 wo,dy -7.0 8 9 word -11.0 12
how can I get it to look like this:
1 some -3.0 4
5 wo,dy -7.0 8
9 word -11.0 12
(so that I can read it into excel or SQL?)