pyarrow.serialize¶
-
pyarrow.
serialize
(value, SerializationContext context=None)¶ EXPERIMENTAL: Serialize a general Python sequence for transient storage and transport.
This may have better performance and memory efficiency than Python pickle.
Notes
This function produces data that is incompatible with the standard Arrow IPC binary protocol, i.e. it cannot be used with ipc.open_stream or ipc.open_file. You can use deserialize, deserialize_from, or deserialize_components to read it.
- Parameters
value (object) – Python object for the sequence that is to be serialized.
context (SerializationContext) – Custom serialization and deserialization context, uses a default context with some standard type handlers if not specified.
- Returns
serialized (SerializedPyObject)