Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique on the datetimeindex / datetime64 array #9431

Closed
hayd opened this issue Feb 6, 2015 · 1 comment · Fixed by #10724
Closed

Unique on the datetimeindex / datetime64 array #9431

hayd opened this issue Feb 6, 2015 · 1 comment · Fixed by #10724
Labels
Bug Datetime Datetime data dtype Timedelta Timedelta data type
Milestone

Comments

@hayd
Copy link
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.

@hayd hayd added Bug Datetime Datetime data dtype labels Feb 6, 2015
@dsm054
Copy link
Contributor

dsm054 commented Feb 6, 2015

I get the same in 0.15.2-163-g671b384.

@jreback jreback added this to the 0.17.0 milestone Feb 6, 2015
@jreback jreback modified the milestones: 0.17.0, Next Major Release Aug 2, 2015
@jreback jreback added the Timedelta Timedelta data type label Aug 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants