![](https://secure.gravatar.com/avatar/97c543aca1ac7bbcfb5279d0300c8330.jpg?s=120&d=mm&r=g)
On Tue, Apr 1, 2014 at 5:22 PM, Alexander Belopolsky <ndarray@mac.com> wrote:
On Tue, Apr 1, 2014 at 12:10 PM, Chris Barker <chris.barker@noaa.gov> wrote:
It seems this committee of two has come to a consensus on naive -- and you're probably right, raise an exception if there is a time zone specifier.
Count me as +1 on naive, but consider converting garbage (including strings with trailing Z) to NaT.
That's not how we handle other types, e.g.: In [5]: a = np.zeros(1, dtype=float) In [6]: a[0] = "garbage" ValueError: could not convert string to float: garbage (Cf, "Errors should never pass silently".) Any reason why datetime64 should be different? -n -- Nathaniel J. Smith Postdoctoral researcher - Informatics - University of Edinburgh http://vorpus.org