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

Function test_stream_read_pandas

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

Source from the content-addressed store, hash-verified

713
714@pytest.mark.pandas
715def test_stream_read_pandas(stream_fixture):
716 frames = [batch.to_pandas() for batch in stream_fixture.write_batches()]
717 file_contents = stream_fixture.get_source()
718 reader = pa.ipc.open_stream(file_contents)
719 result = reader.read_pandas()
720
721 expected = pd.concat(frames).reset_index(drop=True)
722 assert_frame_equal(result, expected)
723
724
725@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