- pyarrow.ipc.new_file(sink, schema, *, use_legacy_format=None, options=None)¶
Create an Arrow columnar IPC file writer instance
pyarrow.NativeFile, or file-like Python object
Either a file path, or a writable file object.
The Arrow schema for data to be written to the file.
- use_legacy_formatbool, default
Deprecated in favor of setting options. Cannot be provided with options.
If None, False will be used unless this default is overridden by setting the environment variable ARROW_PRE_0_15_IPC_FORMAT=1
Options for IPC serialization.
If None, default values will be used: the legacy format will not be used unless overridden by setting the environment variable ARROW_PRE_0_15_IPC_FORMAT=1, and the V5 metadata version will be used unless overridden by setting the environment variable ARROW_PRE_1_0_METADATA_VERSION=1.
A writer for the given sink