[Numpy-discussion] saving an array of strings

Timmie timmichelsen at gmx-topmail.de
Mon Mar 2 05:26:05 EST 2009


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: float argument required

Thanks for any help & regards,
Timmie




More information about the NumPy-Discussion mailing list