Skip to content

datetime.date support in 0.8 new timeseries framework #1395

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

Closed
sadruddin opened this issue Jun 5, 2012 · 1 comment
Closed

datetime.date support in 0.8 new timeseries framework #1395

sadruddin opened this issue Jun 5, 2012 · 1 comment

Comments

@sadruddin
Copy link

Is is the intention that datetime.date would be supported as a valid input type for some methods? I have observed that it is only partially supported. Example, when using 0.8.0b1:

# Works
pandas.BDay().rollforward(datetime.date(2011, 11, 30))
# Doesn't work (returns None)
pandas.Day().rollforward(datetime.date(2011, 11, 30)) 

# Works
pandas.QuarterEnd().rollback(datetime.date(2011, 11, 30))
# Doesn't work (raises Exception, code expected datetime.datetime object)
pandas.YearEnd().rollback(datetime.date(2011, 11, 30)) 
@wesm
Copy link
Member

wesm commented Jun 7, 2012

There is only partial support in these methods for datetime.date. I won't have the time to add sufficient testing that they all work with datetime.date; would need additional development help

@wesm wesm closed this as completed in cfa70db Sep 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants