diff --git a/setup.py b/setup.py index 120afcee..8b1e0260 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ "setuptools", "db-dtypes >=1.0.4,<2.0.0", "numpy >=1.18.1", - "pandas >=1.1.4, <3.0.0", + "pandas >=1.1.4", "pyarrow >=4.0.0", "pydata-google-auth >=1.5.0", "psutil >=5.9.8", diff --git a/tests/system/test_to_gbq.py b/tests/system/test_to_gbq.py index ad7c58ec..d6a3577e 100644 --- a/tests/system/test_to_gbq.py +++ b/tests/system/test_to_gbq.py @@ -155,7 +155,7 @@ def test_series_round_trip( dtype="boolean", ), "object_col": pandas.Series( - [False, None, True], + [False, pandas.NA, True], dtype="object", ), } @@ -344,7 +344,10 @@ def test_series_round_trip( # google-cloud-bigquery versions 1.x and 2.x, but not 3.x. # https://github.com/googleapis/python-bigquery-pandas/issues/365 "datetime_col": [ - datetime.datetime(1, 1, 1), + # CSV loader in BigQuery currently requires leading 0s + # for TIMESTAMP but not DATETIME. See internal issue + # b/467399807. + datetime.datetime(1000, 1, 1), datetime.datetime(1970, 1, 1), datetime.datetime(9999, 12, 31, 23, 59, 59, 999999), ],