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

Timestamp.to_datetime fails with tzoffset objects #2471

Closed
wesm opened this issue Dec 10, 2012 · 2 comments
Closed

Timestamp.to_datetime fails with tzoffset objects #2471

wesm opened this issue Dec 10, 2012 · 2 comments
Labels
Milestone

Comments

@wesm
Copy link
Member

wesm commented Dec 10, 2012

example from #2262

In [8]: df2['ts'][0].to_datetime() 
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-8-0663d65dd92c> in <module>()
----> 1 df2['ts'][0].to_datetime()

/home/wesm/code/pandas/pandas/tslib.so in pandas.tslib._Timestamp.to_datetime (pandas/tslib.c:8590)()

/home/wesm/code/pandas/pandas/tslib.so in pandas.tslib._Timestamp.to_datetime (pandas/tslib.c:8454)()

/home/wesm/code/pandas/pandas/tslib.so in pandas.tslib.convert_to_tsobject (pandas/tslib.c:10284)()

AttributeError: 'tzoffset' object has no attribute 'normalize'

In [9]: df2['ts'][0]
Out[9]: <Timestamp: 2012-11-15 10:38:04-0500, tz=tzoffset(None, -18000)>
@changhiskhan
Copy link
Contributor

Timestamp ctor also fails with tzoffset

@changhiskhan
Copy link
Contributor

closed via 223a1fd

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