-
Notifications
You must be signed in to change notification settings - Fork 122
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
TST: dtype for BigQuery TIMESTAMP unexpectedly using datetime64[ns, UTC] dtype #261
Comments
I can reproduces this in pandas (development version, 0.24.0+, but not 0.23.4) with this minimal example:
It prints:
There do appear to be a lot of changes to |
Should we put this upstream? That second example is a good one... |
Filed upstream at pandas-dev/pandas#25843 |
From the test results for #262.
Hrm. Hopefully this doesn't also affect the DataFrame or Series constructor because then |
Re: warning. I think it's pandas-dev/pandas#23579 which should just affect individual values, not the DataFrame / Series constructors. Re: ignoring |
Now that #269 is merged, this behavior is no longer unexpected, it's intentional. :-) |
It's odd that we explicitly specify the
datetime64[ns]
dtype, but it comes back asdatetime64[ns, UTC]
on the latest pandas version. I knowto_dataframe
fromgoogle-cloud-bigquery
returns datetime objects with the UTC timezone, but I'd expect an explicit dtype ofdatetime64[ns]
to take precedence.The text was updated successfully, but these errors were encountered: