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

Accessing fields in datetime64 Series #2315

Closed
wesm opened this issue Nov 21, 2012 · 6 comments
Closed

Accessing fields in datetime64 Series #2315

wesm opened this issue Nov 21, 2012 · 6 comments
Labels
Datetime Datetime data dtype Enhancement

Comments

@wesm
Copy link
Member

wesm commented Nov 21, 2012

xref: http://stackoverflow.com/questions/13478597/arithmetic-on-date-series-not-an-index-in-pandas

@jreback
Copy link
Contributor

jreback commented Mar 15, 2013

this is easily accomplished via timedelta64 types, closing

@jreback jreback closed this as completed Mar 15, 2013
@wesm
Copy link
Member Author

wesm commented Mar 16, 2013

I'm reopening until this is actually implemented-- it's not very easy to access fields on datetime64-dtype Series right now

@wesm wesm reopened this Mar 16, 2013
@jreback
Copy link
Contributor

jreback commented Mar 16, 2013

maybe I misunderstood what the op was after
timedeltas will accomplish what they want (eg basically subtracting dates) and getting a field

I agree it's not totally implemented as need to actually have a timedeltas scalar (but indicated that in another issue)

@jreback
Copy link
Contributor

jreback commented Mar 16, 2013

maybe combine with #3009?

@wesm
Copy link
Member Author

wesm commented Mar 16, 2013

#3009 is a distinct concern. I wasn't actually interested in solving the OP's question per se but rather to make it possible to access the datetime fields in a datetime64 dtype Series without having to convert it to a DatetimeIndex.

@hayd
Copy link
Contributor

hayd commented May 29, 2014

dealing with this in #7207

@hayd hayd closed this as completed May 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Enhancement
Projects
None yet
Development

No branches or pull requests

3 participants