Re: [Numpy-discussion] saving an array of strings

2009-03-02 Thread Robert Kern
On Mon, Mar 2, 2009 at 04:26, Timmie wrote: > Hello, > can numpy.savetxt save an array of strings? You need to use fmt= argument to specify the format string(s). The default is %10.5f, so it only works for floats. -- Robert Kern "I have come to believe that the whole world is an enigma, a harm

[Numpy-discussion] saving an array of strings

2009-03-02 Thread Timmie
Hello, can numpy.savetxt save an array of strings? I got the following arror when saving an array containing strings formatted from datetime objects: File "C:\Programme\pythonxy\python\lib\site-packages\numpy\lib\io.py", line 542, in savetxt fh.write(format % tuple(row) + '\n') TypeError: f