diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index d908a68a8be4a..da6dec741e794 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -30,7 +30,7 @@ jobs: env_file: [actions-310.yaml, actions-311.yaml, actions-312.yaml, actions-313.yaml] # Prevent the include jobs from overriding other jobs pattern: [""] - pandas_future_infer_string: ["0"] + pandas_future_infer_string: ["1"] include: - name: "Downstream Compat" env_file: actions-311-downstream_compat.yaml @@ -45,6 +45,10 @@ jobs: env_file: actions-313-freethreading.yaml pattern: "not slow and not network and not single_cpu" platform: ubuntu-24.04 + - name: "Without PyArrow" + env_file: actions-312.yaml + pattern: "not slow and not network and not single_cpu" + platform: ubuntu-24.04 - name: "Locale: it_IT" env_file: actions-311.yaml pattern: "not slow and not network and not single_cpu" @@ -67,13 +71,9 @@ jobs: # It will be temporarily activated during tests with locale.setlocale extra_loc: "zh_CN" platform: ubuntu-24.04 - - name: "Future infer strings" + - name: "Past no infer strings" env_file: actions-312.yaml - pandas_future_infer_string: "1" - platform: ubuntu-24.04 - - name: "Future infer strings (without pyarrow)" - env_file: actions-311.yaml - pandas_future_infer_string: "1" + pandas_future_infer_string: "0" platform: ubuntu-24.04 - name: "Pypy" env_file: actions-pypy-39.yaml @@ -88,7 +88,6 @@ jobs: - name: "Pyarrow Nightly" env_file: actions-311-pyarrownightly.yaml pattern: "not slow and not network and not single_cpu" - pandas_future_infer_string: "1" platform: ubuntu-24.04 fail-fast: false name: ${{ matrix.name || format('{0} {1}', matrix.platform, matrix.env_file) }} @@ -103,7 +102,7 @@ jobs: PYTEST_TARGET: ${{ matrix.pytest_target || 'pandas' }} # Clipboard tests QT_QPA_PLATFORM: offscreen - REMOVE_PYARROW: ${{ matrix.name == 'Future infer strings (without pyarrow)' && '1' || '0' }} + REMOVE_PYARROW: ${{ matrix.name == 'Without PyArrow' && '1' || '0' }} concurrency: # https://github.community/t/concurrecy-not-work-for-push/183068/7 group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-${{ matrix.pattern }}-${{ matrix.extra_apt || '' }}-${{ matrix.pandas_future_infer_string }}-${{ matrix.platform }} diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index 20fe8cbab1c9f..bf7e8fb02b58e 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -880,7 +880,7 @@ def register_converter_cb(key: str) -> None: with cf.config_prefix("future"): cf.register_option( "infer_string", - True if os.environ.get("PANDAS_FUTURE_INFER_STRING", "0") == "1" else False, + False if os.environ.get("PANDAS_FUTURE_INFER_STRING", "1") == "0" else True, "Whether to infer sequence of str objects as pyarrow string " "dtype, which will be the default in pandas 3.0 " "(at which point this option will be deprecated).",