MCPcopy Create free account
hub / github.com/datapane/datapane / save_load_arrow

Function save_load_arrow

python-client/tests/common/test_df_processor.py:34–38  ·  view source on GitHub ↗

Roundtrip via an arrow file

(tmp_path: Path, df: pd.DataFrame)

Source from the content-addressed store, hash-verified

32
33
34def save_load_arrow(tmp_path: Path, df: pd.DataFrame) -> pd.DataFrame:
35 """Roundtrip via an arrow file"""
36 fn = mktemp(".arrow", dir=tmp_path)
37 ArrowFormat.save_file(str(fn), df.copy(deep=True))
38 return ArrowFormat.load_file(fn)
39
40
41def test_convert_axis():

Callers 3

_test_orderFunction · 0.85
_test_dfFunction · 0.85

Calls 3

save_fileMethod · 0.45
copyMethod · 0.45
load_fileMethod · 0.45

Tested by

no test coverage detected