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

Function test_file_read_pandas

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

Source from the content-addressed store, hash-verified

238
239@pytest.mark.pandas
240def test_file_read_pandas(file_fixture):
241 frames = [batch.to_pandas() for batch in file_fixture.write_batches()]
242
243 file_contents = pa.BufferReader(file_fixture.get_source())
244 reader = pa.ipc.open_file(file_contents)
245 result = reader.read_pandas()
246
247 expected = pd.concat(frames).reset_index(drop=True)
248 assert_frame_equal(result, expected)
249
250
251def 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