Skip to main content

arrow_record_batches_to_pybytes

Function arrow_record_batches_to_pybytes 

Source
pub fn arrow_record_batches_to_pybytes(
    py: Python<'_>,
    schema: &Schema,
    batches: &[RecordBatch],
) -> PyResult<Py<PyBytes>>
Expand description

Transforms the given record batches into Python bytes as a single Arrow IPC stream.

ยงErrors

Returns an error if writing the Arrow IPC stream fails.