[Numpy-discussion] saving an array of strings

Robert Kern robert.kern@gmail....
Mon Mar 2 11:30:55 CST 2009

On Mon, Mar 2, 2009 at 04:26, Timmie <timmichelsen@gmx-topmail.de> 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 harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the Numpy-discussion mailing list