Write an arrow table to a file
(table: pa.Table, sink: Union[str, IO[bytes]])
| 14 | |
| 15 | |
| 16 | def 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 | |
| 23 | PathOrFile = Union[str, IO] |