AlenkaF commented on code in PR #39609:
URL: https://github.com/apache/arrow/pull/39609#discussion_r1453068051


##########
python/pyarrow/tests/test_pandas.py:
##########
@@ -4312,10 +4314,13 @@ def test_array_to_pandas():
 def test_roundtrip_empty_table_with_extension_dtype_index():
     df = pd.DataFrame(index=pd.interval_range(start=0, end=3))
     table = pa.table(df)
-    table.to_pandas().index == pd.Index([{'left': 0, 'right': 1},
-                                         {'left': 1, 'right': 2},
-                                         {'left': 2, 'right': 3}],
-                                        dtype='object')
+    if Version(pd.__version__) > Version("1.0"):
+        tm.assert_index_equal(table.to_pandas().index, df.index)
+    else:
+        assert table.to_pandas().index == pd.Index([{'left': 0, 'right': 1},

Review Comment:
   It was failing on pandas 1.0 🤷‍♀️ 
   
https://github.com/apache/arrow/actions/runs/7530944983/job/20498420418#step:6:6647



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to