From 73e1511916b6d47b052895d297033f94bfdc1ea9 Mon Sep 17 00:00:00 2001 From: Guja <127162872+GujaLomsadze@users.noreply.github.com> Date: Wed, 22 Jul 2026 20:02:50 +0200 Subject: [PATCH] GH-50579: [Python] Fix test_categorical_order_survives_roundtrip pandas 3.0.3 deprecation --- python/pyarrow/tests/parquet/test_pandas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyarrow/tests/parquet/test_pandas.py b/python/pyarrow/tests/parquet/test_pandas.py index 8dbd5d71b9b..d12b43f4e03 100644 --- a/python/pyarrow/tests/parquet/test_pandas.py +++ b/python/pyarrow/tests/parquet/test_pandas.py @@ -472,7 +472,7 @@ def test_categorical_index_survives_roundtrip(): def test_categorical_order_survives_roundtrip(): # ARROW-6302 df = pd.DataFrame({"a": pd.Categorical( - ["a", "b", "c", "a"], categories=["b", "c", "d"], ordered=True)}) + ["d", "b", "c", None], categories=["b", "c", "d"], ordered=True)}) table = pa.Table.from_pandas(df) bos = pa.BufferOutputStream()