[Numpy-discussion] array 2 string

Mark Bakker markbak at gmail.com
Tue Mar 10 12:21:23 EDT 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