pyarrow.serialize_to#

pyarrow.serialize_to(value, sink, SerializationContext context=None)#

DEPRECATED: Serialize a Python sequence to a file.

Deprecated since version 2.0: The custom serialization functionality is deprecated in pyarrow 2.0, and will be removed in a future version. Use the standard library pickle or the IPC functionality of pyarrow (see Streaming, Serialization, and IPC for more).

Parameters
valueobject

Python object for the sequence that is to be serialized.

sinkNativeFile or file-like

File the sequence will be written to.

contextSerializationContext

Custom serialization and deserialization context, uses a default context with some standard type handlers if not specified.