Skip to content

read_csv: Tz-aware datetime.datetime cannot be converted to datetime64 #1693

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
khughitt opened this issue Jul 27, 2012 · 0 comments
Closed
Labels
Bug Datetime Datetime data dtype IO Data IO issues that don't fit into a more specific label
Milestone

Comments

@khughitt
Copy link
Contributor

This may be related to some of the other TimeZone issues.

This worked in 0.8, but now raises an error in 0.8.1:

import pandas
import StringIO

data = StringIO.StringIO("Date,x\n2012-06-13T01:39:00Z,0.5")
pandas.read_csv(data,index_col=0, parse_dates=True)

Error:

ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True
@wesm wesm closed this as completed in 4cafeb0 Aug 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype IO Data IO issues that don't fit into a more specific label
Projects
None yet
Development

No branches or pull requests

2 participants