[Numpy-discussion] using loadtxt to load a text file in to a numpy array

Oscar Benjamin oscar.j.benjamin at gmail.com
Thu Jan 23 19:02:26 EST 2014


On 23 January 2014 21:51, Chris Barker <chris.barker at noaa.gov> wrote:
>
> However, I would prefer latin-1 -- that way  you  might get garbage for the
> non-ascii parts, but it wouldn't raise an exception and it round-trips
> through encoding/decoding. And you would have a somewhat more useful subset
> -- including the latin-language character and symbols like the degree
> symbol, etc.

Exceptions and error messages are a good thing! Garbage is not!!!  :)


Oscar



More information about the NumPy-Discussion mailing list