From 0185d109d123d608e25e59f53293aa75c003b39d Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Sun, 20 Jul 2025 12:51:18 +0200 Subject: [PATCH 1/2] CI: properly enable the string dtype also for custom CI builds --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index d2899e3838683..412f27cba9c4f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -91,7 +91,7 @@ jobs: LANG: ${{ matrix.lang || 'C.UTF-8' }} LC_ALL: ${{ matrix.lc_all || '' }} PANDAS_CI: '1' - PANDAS_FUTURE_INFER_STRING: ${{ matrix.pandas_future_infer_string || '0' }} + PANDAS_FUTURE_INFER_STRING: ${{ matrix.pandas_future_infer_string || '1' }} TEST_ARGS: ${{ matrix.test_args || '' }} PYTEST_WORKERS: 'auto' PYTEST_TARGET: ${{ matrix.pytest_target || 'pandas' }} From 2a0a6a0f36b421b6ff796552ae44062f10a0ef8e Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Sun, 20 Jul 2025 15:57:59 +0200 Subject: [PATCH 2/2] update tests --- pandas/tests/indexing/test_iloc.py | 4 ++++ pandas/tests/io/test_gcs.py | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pandas/tests/indexing/test_iloc.py b/pandas/tests/indexing/test_iloc.py index 3be69617cad43..5ea1113310f6b 100644 --- a/pandas/tests/indexing/test_iloc.py +++ b/pandas/tests/indexing/test_iloc.py @@ -6,6 +6,7 @@ import numpy as np import pytest +from pandas.compat import pa_version_under16p0 from pandas.errors import IndexingError from pandas import ( @@ -140,6 +141,9 @@ def test_is_scalar_access(self): df = ser.to_frame() assert df.iloc._is_scalar_access((1, 0)) + @pytest.mark.skipif( + pa_version_under16p0, reason="https://github.com/apache/arrow/issues/40642" + ) def test_iloc_exceeds_bounds(self): # GH6296 # iloc should allow indexers that exceed the bounds diff --git a/pandas/tests/io/test_gcs.py b/pandas/tests/io/test_gcs.py index f68ef5fa2e0e5..78c612472cc59 100644 --- a/pandas/tests/io/test_gcs.py +++ b/pandas/tests/io/test_gcs.py @@ -216,7 +216,6 @@ def test_to_parquet_gcs_new_file(monkeypatch, tmpdir): { "int": [1, 3], "float": [2.0, np.nan], - "str": ["t", "s"], "dt": date_range("2018-06-18", periods=2), } )