Available on (crate features io_csv_read or io_csv_read_async or io_csv_write) and crate feature io_csv_read_async only.
Expand description

Asynchronous reading of CSV

Structs

A already configured CSV reader.

Builds a CSV reader with various configuration knobs.

A single CSV record stored as raw bytes.

An error that can occur when processing CSV data.

Functions

Deserializes rows ByteRecord into Chunk. Note that this is a convenience function: column deserialization is trivially parallelizable (e.g. rayon).

Deserializes column of rows into an Array of DataType datatype.

Infers DataType from bytes

Infers the Fields of a CSV file by reading through the first n records up to max_rows. Seeks back to the begining of the file after the header

Asynchronosly read len rows from reader into row, skiping the first skip. This operation has minimal CPU work and is thus the fastest way to read through a CSV without deserializing the contents to Arrow.