MCPcopy
hub / github.com/pandas-dev/pandas / test_feather_options

Function test_feather_options

pandas/tests/io/test_fsspec.py:286–293  ·  view source on GitHub ↗
(fsspectest)

Source from the content-addressed store, hash-verified

284
285
286def test_feather_options(fsspectest):
287 pytest.importorskip("pyarrow")
288 df = DataFrame({"a": [0]})
289 df.to_feather("testmem://mockfile", storage_options={"test": "feather_write"})
290 assert fsspectest.test[0] == "feather_write"
291 out = read_feather("testmem://mockfile", storage_options={"test": "feather_read"})
292 assert fsspectest.test[0] == "feather_read"
293 tm.assert_frame_equal(df, out)
294
295
296def test_pickle_options(fsspectest):

Callers

nothing calls this directly

Calls 3

to_featherMethod · 0.95
DataFrameClass · 0.90
read_featherFunction · 0.90

Tested by

no test coverage detected