Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923967 - 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'
Summary: dev-python/pandas-2.2.0-r1 fails tests: pandas/tests/frame/test_arrow_interfa...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 922547
  Show dependency tree
 
Reported: 2024-02-07 05:00 UTC by matoro
Modified: 2024-02-07 05:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-02-07 05:00:39 UTC
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
Comment 1 matoro archtester 2024-02-07 05:02:24 UTC
Log too big even xz-compressed, linked here:  https://paste.matoro.tk/q2gea5d