Skip to content

timezone aware DatetimeIndex from datetime.datetime (regression) #1676

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
kdebrab opened this issue Jul 25, 2012 · 1 comment
Closed

timezone aware DatetimeIndex from datetime.datetime (regression) #1676

kdebrab opened this issue Jul 25, 2012 · 1 comment
Labels
Milestone

Comments

@kdebrab
Copy link
Contributor

kdebrab commented Jul 25, 2012

The following code worked in pandas 0.8.0b1, but not longer in 0.8.1:

import pandas as pnd
from datetime import datetime
from dateutil.tz import tzoffset
values = [188.5, 328.25]
index = [datetime(2012, 5, 11, 11, tzinfo=tzoffset(None, 7200)), datetime(2012, 5, 11, 12, tzinfo=tzoffset(None, 7200))]
series = pnd.Series(data = values, index = index)

What would you propose as a workaround?

Python 2.7.2, Numpy 1.6.1

wesm added a commit that referenced this issue Sep 18, 2012
@wesm
Copy link
Member

wesm commented Sep 18, 2012

This has been fixed in the development version. Added your code as a a unit test that dateutil.tz.tzoffset is supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants