MCPcopy Create free account
hub / github.com/apache/arrow / test_stream_read_pandas

Function test_stream_read_pandas

python/pyarrow/tests/test_ipc.py:739–746  ·  view source on GitHub ↗
(stream_fixture)

Source from the content-addressed store, hash-verified

737
738@pytest.mark.pandas
739def test_stream_read_pandas(stream_fixture):
740 frames = [batch.to_pandas() for batch in stream_fixture.write_batches()]
741 file_contents = stream_fixture.get_source()
742 reader = pa.ipc.open_stream(file_contents)
743 result = reader.read_pandas()
744
745 expected = pd.concat(frames).reset_index(drop=True)
746 assert_frame_equal(result, expected)
747
748
749@pytest.fixture

Callers

nothing calls this directly

Calls 3

write_batchesMethod · 0.80
get_sourceMethod · 0.80
read_pandasMethod · 0.45

Tested by

no test coverage detected