|
80 | 80 | from test_utils.imports import maybe_fail_import |
81 | 81 | from tests.unit.helpers import make_connection |
82 | 82 |
|
83 | | -if pandas is not None: |
84 | | - PANDAS_INSTALLED_VERSION = metadata.version("pandas") |
85 | | -else: |
86 | | - PANDAS_INSTALLED_VERSION = "0.0.0" |
87 | | - |
88 | 83 |
|
89 | 84 | def _make_credentials(): |
90 | 85 | import google.auth.credentials |
@@ -8146,11 +8141,8 @@ def test_load_table_from_dataframe_unknown_table(self): |
8146 | 8141 | timeout=DEFAULT_TIMEOUT, |
8147 | 8142 | ) |
8148 | 8143 |
|
8149 | | - @unittest.skipIf( |
8150 | | - PANDAS_INSTALLED_VERSION[0:2] in ["0."], |
8151 | | - reason="Only `pandas version >=1.0.0` is supported", |
8152 | | - ) |
8153 | 8144 | @unittest.skipIf(pyarrow is None, "Requires `pyarrow`") |
| 8145 | + @unittest.skipIf(pandas is None, "Requires `pandas`") |
8154 | 8146 | def test_load_table_from_dataframe_w_nullable_int64_datatype(self): |
8155 | 8147 | from google.cloud.bigquery.client import _DEFAULT_NUM_RETRIES |
8156 | 8148 | from google.cloud.bigquery import job |
@@ -8194,11 +8186,8 @@ def test_load_table_from_dataframe_w_nullable_int64_datatype(self): |
8194 | 8186 | SchemaField("x", "INT64", "NULLABLE", None), |
8195 | 8187 | ) |
8196 | 8188 |
|
8197 | | - @unittest.skipIf( |
8198 | | - PANDAS_INSTALLED_VERSION[0:2] in ["0."], |
8199 | | - reason="Only `pandas version >=1.0.0` is supported", |
8200 | | - ) |
8201 | 8189 | # @unittest.skipIf(pyarrow is None, "Requires `pyarrow`") |
| 8190 | + @unittest.skipIf(pandas is None, "Requires `pandas`") |
8202 | 8191 | def test_load_table_from_dataframe_w_nullable_int64_datatype_automatic_schema(self): |
8203 | 8192 | from google.cloud.bigquery.client import _DEFAULT_NUM_RETRIES |
8204 | 8193 | from google.cloud.bigquery import job |
|
0 commit comments