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

Function test_filelike_objects

python/pyarrow/tests/test_feather.py:577–588  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

575
576@pytest.mark.pandas
577def test_filelike_objects(version):
578 buf = io.BytesIO()
579
580 # the copy makes it non-strided
581 df = pd.DataFrame(np.arange(12).reshape(4, 3),
582 columns=['a', 'b', 'c']).copy()
583 write_feather(df, buf, version=version)
584
585 buf.seek(0)
586
587 result = read_feather(buf)
588 assert_frame_equal(result, df)
589
590
591@pytest.mark.pandas

Callers

nothing calls this directly

Calls 4

write_featherFunction · 0.90
read_featherFunction · 0.90
copyMethod · 0.80
seekMethod · 0.80

Tested by

no test coverage detected