[Numpy-discussion] saving an array of strings

Robert Kern robert.kern at gmail.com
Mon Mar 2 12:30:55 EST 2009


On Mon, Mar 2, 2009 at 04:26, Timmie <timmichelsen at 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