pub struct LazyCsvReader<'a> { /* private fields */ }

Implementations

Skip this number of rows after the header location.

Add a row_count column.

Try to stop parsing when n rows are parsed. During multithreaded parsing the upper bound n cannot be guaranteed.

Set the number of rows to use when inferring the csv schema. the default is 100 rows. Setting to None will do a full table scan, very slow.

Continue with next batch when a ParserError is encountered.

Set the CSV file’s schema

Skip the first n rows during parsing. The header will be parsed at row n.

Overwrite the schema with the dtypes in this given Schema. The given schema may be a subset of the total schema.

Set whether the CSV file has headers

Set the CSV file’s column delimiter as a byte character

Set the comment character. Lines starting with this character will be ignored.

Set the char used as quote char. The default is b'"'. If set to [None] quoting is disabled.

Set the char used as end of line. The default is b'\n'.

Set values that will be interpreted as missing/ null.

Cache the DataFrame after reading.

Reduce memory usage in expensive of performance

Rechunk the memory to contiguous chunks when parsing is done.

Automatically try to parse dates/ datetimes and time. If parsing fails, columns remain of dtype [DataType::Utf8].

Modify a schema before we run the lazy scanning.

Important! Run this function latest in the builder!

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.