Summary: | dev-python/pandas-2.2.0-r1 fails tests: pandas/tests/frame/test_arrow_interface.py::test_dataframe_to_arrow - AttributeError: 'pyarrow.lib.RecordBatchReader' object has no attribute 'equals' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | matoro <matoro_gentoo> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | matoro_gentoo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 922547 |
Log too big even xz-compressed, linked here: https://paste.matoro.tk/q2gea5d |
Log from amd64 to show this occurs on all arches. ___________________________________________________________________________________ test_dataframe_to_arrow ____________________________________________________________________________________ [gw3] linux -- Python 3.11.7 /var/tmp/portage/dev-python/pandas-2.2.0-r1/work/pandas-2.2.0-python3_11/install/usr/bin/python3.11 @td.skip_if_no("pyarrow", min_version="15.0") def test_dataframe_to_arrow(): df = pd.DataFrame({"a": [1, 2, 3], "b": ["a", "b", "c"]}) table = pa.RecordBatchReader.from_stream(df) expected = pa.table({"a": [1, 2, 3], "b": ["a", "b", "c"]}) > assert table.equals(expected) E AttributeError: 'pyarrow.lib.RecordBatchReader' object has no attribute 'equals' df = a b 0 1 a 1 2 b 2 3 c expected = pyarrow.Table a: int64 b: string ---- a: [[1,2,3]] b: [["a","b","c"]] table = <pyarrow.lib.RecordBatchReader object at 0x7e96705ade30> pandas/tests/frame/test_arrow_interface.py:40: AttributeError Reproducible: Always