Unique on the datetimeindex / datetime64 array #9431

Closed
hayd opened this Issue Feb 6, 2015 · 1 comment

Comments

Projects
None yet
3 participants
Contributor

hayd commented Feb 6, 2015

http://stackoverflow.com/a/28357483/1240268

In [11]: dti = pd.DatetimeIndex([pd.Timestamp('2015-02-05 22:24:00+0000', tz='UTC')])

In [12]: dti.unique()
Out[12]:
<class 'pandas.tseries.index.DatetimeIndex'>
[2015-02-05 22:24:00+00:00]
Length: 1, Freq: None, Timezone: UTC

In [13]: pd.unique(dti)
Out[13]: array([1423175040000000000L], dtype=object)

In [14]: pd.unique(dti.values)
Out[14]: array([1423175040000000000L], dtype=object)

This is on 0.15.2, not checked on master.

Contributor

dsm054 commented Feb 6, 2015

I get the same in 0.15.2-163-g671b384.

jreback added this to the 0.17.0 milestone Feb 6, 2015

@jreback jreback modified the milestone: 0.17.0, Next Major Release Aug 2, 2015

jreback added the Timedelta label Aug 2, 2015

jreback closed this in #10724 Aug 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment