Function polars_io::csv::write::serialize [−][src]
pub fn serialize(
batch: &RecordBatch,
options: &SerializeOptions
) -> Result<Vec<ByteRecord, Global>, ArrowError>
This is supported on crate features
csv-file
and io_csv_write
only.Expand description
Serializes a RecordBatch
as vector of ByteRecord
.
The vector is guaranteed to have batch.num_rows()
entries.
Each ByteRecord
is guaranteed to have batch.num_columns()
fields.