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
Infers DataType
from bytes
Implementation
- case insensitive “true” or “false” are mapped to
DataType::Boolean
- parsable to integer is mapped to
DataType::Int64
- parsable to float is mapped to
DataType::Float64
- parsable to date is mapped to
DataType::Date32
- parsable to time is mapped to [
DataType::Time32(TimeUnit::Millisecond)
] - parsable to naive datetime is mapped to [
DataType::Timestamp(TimeUnit::Millisecond, None)
] - parsable to time-aware datetime is mapped to
DataType::Timestamp
of milliseconds and parsed offset. - other utf8 is mapped to
DataType::Utf8
- invalid utf8 is mapped to
DataType::Binary