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

Method save_file

python-client/src/datapane/common/datafiles.py:60–64  ·  view source on GitHub ↗
(fn: PathOrFile, df: pd.DataFrame)

Source from the content-addressed store, hash-verified

58
59 @staticmethod
60 def save_file(fn: PathOrFile, df: pd.DataFrame):
61 df = process_df(df)
62 # NOTE - can pass expected schema and columns for output df here
63 table: pa.Table = pa.Table.from_pandas(df, preserve_index=False)
64 write_table(table, fn)
65
66
67class CSVFormat(DFFormatter):

Callers

nothing calls this directly

Calls 2

process_dfFunction · 0.85
write_tableFunction · 0.85

Tested by

no test coverage detected