polars_io::csv::read::_csv_read_internal

Function prepare_csv_schema

Source
pub fn prepare_csv_schema(
    schema: &mut SchemaRef,
    fields_to_cast: &mut Vec<Field>,
) -> PolarsResult<bool>
Available on crate features csv or json only.
Expand description

Splits datatypes that cannot be natively read into a fields_to_cast for post-read casting.

ยงReturns

has_categorical