Re: [Numpy-discussion] numpy datetime64 NaT string conversion bug & patch

2013-11-28 Thread Julian Taylor
On 27.11.2013 21:51, Charles G. Waldman wrote: > If you convert an array of strings to datetime64s and 'NaT' (or one of > its variants) appears in the string, all subsequent values are > rendered as NaT: thanks, a little embarrassing I didn't spot that when I fixed a different bug in the function

[Numpy-discussion] numpy datetime64 NaT string conversion bug & patch

2013-11-27 Thread Charles G. Waldman
If you convert an array of strings to datetime64s and 'NaT' (or one of its variants) appears in the string, all subsequent values are rendered as NaT: (this is in 1.7.1 but the problem is present in current dev version as well) >>> import numpy as np >>> a = np.array(['2010', 'nat', '2030']) >>>