Skip to content

Commit

Permalink
Backport PR pandas-dev#57005: CI: pyarrow nightly failures
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemanley authored and meeseeksmachine committed Jan 22, 2024
1 parent bfe6c4f commit 317befa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/frame/test_arrow_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ def test_dataframe_arrow_interface():
def test_dataframe_to_arrow():
df = pd.DataFrame({"a": [1, 2, 3], "b": ["a", "b", "c"]})

table = pa.RecordBatchReader.from_stream(df)
table = pa.RecordBatchReader.from_stream(df).read_all()
expected = pa.table({"a": [1, 2, 3], "b": ["a", "b", "c"]})
assert table.equals(expected)

schema = pa.schema([("a", pa.int8()), ("b", pa.string())])
table = pa.RecordBatchReader.from_stream(df, schema=schema)
table = pa.RecordBatchReader.from_stream(df, schema=schema).read_all()
expected = expected.cast(schema)
assert table.equals(expected)

0 comments on commit 317befa

Please sign in to comment.