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

FutureWarning in build log when running tests - 'any' with datetime64 dtypes is deprecated #227

Open
parthea opened this issue Dec 1, 2023 · 0 comments
Labels
api: bigquery Issues related to the googleapis/python-db-dtypes-pandas API. type: cleanup An internal cleanup or hygiene concern.

Comments

@parthea
Copy link
Contributor

parthea commented Dec 1, 2023

See the build log here which contains the following warnings:

tests/unit/test_dtypes.py::test_any[dbdate]
tests/unit/test_dtypes.py::test_any[dbtime]
  /home/runner/work/python-db-dtypes-pandas/python-db-dtypes-pandas/db_dtypes/core.py:148: FutureWarning: 'any' with datetime64 dtypes is deprecated and will raise in a future version. Use (obj != pd.Timestamp(0)).any() instead.
    result = pandas_backports.nanany(self._ndarray, axis=axis, skipna=skipna)

tests/unit/test_dtypes.py::test_all[dbdate]
tests/unit/test_dtypes.py::test_all[dbtime]
  /home/runner/work/python-db-dtypes-pandas/python-db-dtypes-pandas/db_dtypes/core.py:160: FutureWarning: 'all' with datetime64 dtypes is deprecated and will raise in a future version. Use (obj != pd.Timestamp(0)).all() instead.
    result = pandas_backports.nanall(self._ndarray, axis=axis, skipna=skipna)
@parthea parthea added the type: cleanup An internal cleanup or hygiene concern. label Dec 1, 2023
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-db-dtypes-pandas API. label Dec 1, 2023
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-db-dtypes-pandas API. type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

1 participant