[Numpy-discussion] array 2 string

Mark Bakker markbak@gmail....
Tue Mar 10 11:21:23 CDT 2009


Hello,

I want to convert an array to a string.

I like array2string, but it puts these annoying square brackets around
the array, like

[[1 2 3],
 [3 4 5]]

Anyway we can suppress the square brackets and get (this is what is
written with savetxt, but I cannot get it to store in a variable)
1 2 3
4 5 6

Thanks, Mark


More information about the Numpy-discussion mailing list