polars::frame::row

Function rows_to_schema_first_non_null

Source
pub fn rows_to_schema_first_non_null(
    rows: &[Row<'_>],
    infer_schema_length: Option<usize>,
) -> Result<Schema<DataType>, PolarsError>
Available on crate features rows or object only.
Expand description

Infer schema from rows and set the first no null type as column data type.