pub fn infer_iter<A: AsRef<str>>(
    rows: impl Iterator<Item = A>
) -> Result<DataType>
Available on crate feature io_json only.
Expand description

Infers the DataType from an iterator of JSON strings. A limited number of rows can be used by passing rows.take(number_of_rows) as an input.

Implementation

This implementation infers each row by going through the entire iterator.