Function polars_io::csv::write::new_serializer [−][src]
pub fn new_serializer(
array: &'a (dyn Array + 'a),
options: &'a SerializeOptions
) -> Result<Box<dyn StreamingIterator<Item = [u8]> + 'a, Global>, ArrowError>
This is supported on crate features
csv-file
and io_csv_write
only.Expand description
Returns a StreamingIterator
that yields &[u8]
serialized from array
according to options
.
For numeric types, this serializes as usual. For dates, times and timestamps, it uses options
to
Supported types:
- boolean
- numeric types (i.e. floats, int, uint)
- times and dates
- naive timestamps (timestamps without timezone information)
Error
This function errors if any of the logical types in batch
is not supported.