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

Francesc Alted faltet@pytables....
Wed Jul 30 12:50:44 CDT 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