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

Function test_filelike_objects

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

Source from the content-addressed store, hash-verified

568
569@pytest.mark.pandas
570def test_filelike_objects(version):
571 buf = io.BytesIO()
572
573 # the copy makes it non-strided
574 df = pd.DataFrame(np.arange(12).reshape(4, 3),
575 columns=['a', 'b', 'c']).copy()
576 write_feather(df, buf, version=version)
577
578 buf.seek(0)
579
580 result = read_feather(buf)
581 assert_frame_equal(result, df)
582
583
584@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