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

date_range with a given timezone fails if the start argument also has a timezone. #2926

Closed
Moisan opened this issue Feb 25, 2013 · 0 comments
Labels
Bug Datetime Datetime data dtype
Milestone

Comments

@Moisan
Copy link
Contributor

Moisan commented Feb 25, 2013

I am using pandas version 0.11.0.dev-eb3134f

This code will raise this assert

My debugging shows that the code is testing the equality of a timezone object (inferred_tz) to a string (tz).

date_range si supposed to receive a string so I think that it is a legit use of date_range.

from pandas import *
start = Timestamp('20130220 10:00', tz='US/Eastern')
dr = date_range(start, tz='US/Eastern')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants