pyarrow.FileWriter

class pyarrow.FileWriter(sink, schema)[source]

Writer to create the Arrow binary file format

Parameters:
  • sink (str, pyarrow.NativeFile, or file-like Python object) – Either a file path, or a writeable file object
  • schema (pyarrow.Schema) – The Arrow schema for data to be written to the file
__init__(sink, schema)[source]

Methods

__init__(sink, schema)
close(self)
write_batch(self, RecordBatch batch)