polars_json::ndjson::deserializeFunction deserialize_iter
Source pub fn deserialize_iter<'a>(
rows: impl Iterator<Item = &'a str>,
dtype: ArrowDataType,
buf_size: usize,
count: usize,
allow_extra_fields_in_struct: bool,
) -> PolarsResult<ArrayRef>
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 length
§Errors
This function errors iff any of the rows is not a valid JSON (i.e. the format is not valid NDJSON).