Function polars_io::ndjson_core::ndjson::ndjson::read::deserialize
source · [−]pub fn deserialize(
rows: &[String],
data_type: DataType
) -> Result<Arc<dyn Array + 'static>, Error>
Available on crate feature
json
only.Expand description
Deserializes rows into an Array
of DataType
.
Implementation
This function is CPU-bounded.
This function is guaranteed to return an array of length equal to rows.len()
.
Errors
This function errors iff any of the rows is not a valid JSON (i.e. the format is not valid NDJSON).