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

Function test_file_read_pandas

python/pyarrow/tests/test_ipc.py:216–224  ·  view source on GitHub ↗
(file_fixture)

Source from the content-addressed store, hash-verified

214
215@pytest.mark.pandas
216def test_file_read_pandas(file_fixture):
217 frames = [batch.to_pandas() for batch in file_fixture.write_batches()]
218
219 file_contents = pa.BufferReader(file_fixture.get_source())
220 reader = pa.ipc.open_file(file_contents)
221 result = reader.read_pandas()
222
223 expected = pd.concat(frames).reset_index(drop=True)
224 assert_frame_equal(result, expected)
225
226
227def test_file_pathlib(file_fixture, tmpdir):

Callers

nothing calls this directly

Calls 4

write_batchesMethod · 0.80
BufferReaderMethod · 0.80
get_sourceMethod · 0.80
read_pandasMethod · 0.45

Tested by

no test coverage detected