[Numpy-discussion] The date/time dtype and the casting issue

Francesc Alted faltet at pytables.org
Wed Jul 30 13:50:44 EDT 2008


A Wednesday 30 July 2008, Pierre GM escrigué:
> Which brings me to another question:
> datetime64 and timedelta64 are just dtypes, therefore they don't
> impose any restriction (in terms of uniqueness of elements, ordering
> of the elements...) on the underlying ndarray, right ?

That's right.  Perhaps this is the reason why you got mystified about 
the 

numpy.ones(5, dtype="datetime64[s]")

thing.

-- 
Francesc Alted



More information about the NumPy-Discussion mailing list