Skip to content

pandas deprecation warning #1152

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
tswast opened this issue Mar 1, 2022 · 3 comments
Closed

pandas deprecation warning #1152

tswast opened this issue Mar 1, 2022 · 3 comments
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@tswast
Copy link
Contributor

tswast commented Mar 1, 2022

tests/unit/test_client.py::TestClientUpload::test_load_table_from_dataframe_w_automatic_schema
tests/unit/test_client.py::TestClientUpload::test_load_table_from_dataframe_w_partial_schema
  /tmpfs/src/github/python-bigquery/.nox/unit-3-6/lib/python3.6/site-packages/pandas/core/internals/construction.py:703: FutureWarning: Converting timezone-aware DatetimeArray to timezone-naive ndarray with 'datetime64[ns]' dtype. In the future, this will return an ndarray with 'object' dtype where each element is a 'pandas.Timestamp' with the correct 'tz'.
  	To accept the future behavior, pass 'dtype=object'.
  	To keep the old behavior, pass 'dtype="datetime64[ns]"'.
    subarr = construct_1d_object_array_from_listlike(subarr)

From: https://source.cloud.google.com/results/invocations/8f9f2307-f98e-49cd-b996-645bd8f8e5c2/targets/cloud-devrel%2Fclient-libraries%2Fpython%2Fgoogleapis%2Fpython-bigquery%2Fpresubmit%2Fpresubmit/log

Possible that we already fixed this in the v3 branch?

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Mar 1, 2022
@tswast tswast added priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p3 Desirable enhancement or fix. May not be included in next release. labels Mar 1, 2022
@tswast tswast self-assigned this Mar 1, 2022
@tswast tswast removed their assignment Apr 14, 2022
@chalmerlowe
Copy link
Collaborator

@tswast Can you clarify what you mean here?

@tswast
Copy link
Contributor Author

tswast commented Sep 19, 2022

I noticed these warnings in the linked presubmit run. Someone needs to investigate to determine if these warnings are still relevant in the latest version of the library.

@chalmerlowe
Copy link
Collaborator

This future warning is no long present in the presubmit logs. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants