Re: [Numpy-discussion] datetime64 1970 issue

2013-04-17 Thread Bob Nnamtrop
time64('1969-12-31 00') Out[22]: numpy.datetime64('1969-12-31T00:00Z','h') I saw the other thread about the time zone issues and I think getting rid of timezones (perhaps unless they are explicitly requested) is the right thing to do. Bob On Tue, Apr 16, 2013 at 4:55 PM, B

Re: [Numpy-discussion] Finding the same value in List

2013-04-17 Thread Bob Nnamtrop
At bit OT, but I am new to numpy. The help for np.where says: Returns --- out : ndarray or tuple of ndarrays If both `x` and `y` are specified, the output array contains elements of `x` where `condition` is True, and elements from `y` elsewhere. If on

[Numpy-discussion] datetime64 1970 issue

2013-04-16 Thread Bob Nnamtrop
I am curious if others have noticed an issue with datetime64 at the beginning of 1970. First: In [144]: (np.datetime64('1970-01-01') - np.datetime64('1969-12-31')) Out[144]: numpy.timedelta64(1,'D') OK this look fine, they are one day apart. But look at this: In [145]: (np.datetime64('1970-01-01