From 30832c6739324046ef8ca0acc56abdf4054fcc4a Mon Sep 17 00:00:00 2001 From: Hyukjin Kwon Date: Wed, 7 Jan 2026 20:04:07 +0900 Subject: [PATCH 1/2] [Python] Remove Python 3.0.0 comparison for pandas/issues/50127 --- python/pyarrow/tests/test_pandas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pyarrow/tests/test_pandas.py b/python/pyarrow/tests/test_pandas.py index daa9c8314ad..e1fbf87c08b 100644 --- a/python/pyarrow/tests/test_pandas.py +++ b/python/pyarrow/tests/test_pandas.py @@ -525,7 +525,7 @@ def test_mixed_column_names(self): preserve_index=True) def test_binary_column_name(self): - if Version("2.0.0") <= Version(pd.__version__) < Version("3.0.0"): + if Version(pd.__version__) >= Version("2.0.0"): # TODO: regression in pandas, hopefully fixed in next version # https://issues.apache.org/jira/browse/ARROW-18394 # https://github.com/pandas-dev/pandas/issues/50127 @@ -3309,7 +3309,7 @@ def _fully_loaded_dataframe_example(): @pytest.mark.parametrize('columns', ([b'foo'], ['foo'])) def test_roundtrip_with_bytes_unicode(columns): - if Version("2.0.0") <= Version(pd.__version__) < Version("3.0.0"): + if Version(pd.__version__) >= Version("2.0.0"): # TODO: regression in pandas, hopefully fixed in next version # https://issues.apache.org/jira/browse/ARROW-18394 # https://github.com/pandas-dev/pandas/issues/50127 From eb6f29d8aef44a035ae9080a99f5b4c6bfb263f5 Mon Sep 17 00:00:00 2001 From: Hyukjin Kwon Date: Tue, 13 Jan 2026 08:31:39 +0900 Subject: [PATCH 2/2] try? --- python/pyarrow/tests/test_pandas.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/python/pyarrow/tests/test_pandas.py b/python/pyarrow/tests/test_pandas.py index e1fbf87c08b..9a65832125b 100644 --- a/python/pyarrow/tests/test_pandas.py +++ b/python/pyarrow/tests/test_pandas.py @@ -525,11 +525,6 @@ def test_mixed_column_names(self): preserve_index=True) def test_binary_column_name(self): - if Version(pd.__version__) >= Version("2.0.0"): - # TODO: regression in pandas, hopefully fixed in next version - # https://issues.apache.org/jira/browse/ARROW-18394 - # https://github.com/pandas-dev/pandas/issues/50127 - pytest.skip("Regression in pandas 2.0.0") column_data = ['い'] key = 'あ'.encode() data = {key: column_data} @@ -3309,12 +3304,6 @@ def _fully_loaded_dataframe_example(): @pytest.mark.parametrize('columns', ([b'foo'], ['foo'])) def test_roundtrip_with_bytes_unicode(columns): - if Version(pd.__version__) >= Version("2.0.0"): - # TODO: regression in pandas, hopefully fixed in next version - # https://issues.apache.org/jira/browse/ARROW-18394 - # https://github.com/pandas-dev/pandas/issues/50127 - pytest.skip("Regression in pandas 2.0.0") - df = pd.DataFrame(columns=columns) table1 = pa.Table.from_pandas(df) table2 = pa.Table.from_pandas(table1.to_pandas())