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

Function write_table

python-client/src/datapane/common/datafiles.py:16–20  ·  view source on GitHub ↗

Write an arrow table to a file

(table: pa.Table, sink: Union[str, IO[bytes]])

Source from the content-addressed store, hash-verified

14
15
16def write_table(table: pa.Table, sink: Union[str, IO[bytes]]):
17 """Write an arrow table to a file"""
18 writer = RecordBatchFileWriter(sink, table.schema)
19 writer.write(table)
20 writer.close()
21
22
23PathOrFile = Union[str, IO]

Callers 1

save_fileMethod · 0.85

Calls 2

writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected