Function polars_io::ndjson_core::ndjson::arrow_ndjson::read::deserialize_iter
source · pub fn deserialize_iter<'a>(
rows: impl Iterator<Item = &'a str>,
data_type: DataType
) -> Result<Box<dyn Array + 'static, Global>, Error>
Available on crate features
json
and io_json
only.Expand description
Deserializes an iterator of rows into an Array
of DataType
.
Implementation
This function is CPU-bounded. This function is guaranteed to return an array of length equal to the leng
Errors
This function errors iff any of the rows is not a valid JSON (i.e. the format is not valid NDJSON).