Skip to content

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

Open
@parthea

Description

@parthea

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the googleapis/python-db-dtypes-pandas API.type: cleanupAn internal cleanup or hygiene concern.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions