to_dataframe

Function to_dataframe 

Source
pub fn to_dataframe<'a, T, I, H>(
    values: Vec<T>,
    names: I,
) -> PolarsResult<DataFrame>
where T: IntoRow<'a>, H: Into<PlSmallStr>, I: IntoIterator<Item = H>,
Expand description

Convert vector of values of a given type to a Polars DataFrame

§Example

let df = to_dataframe::<i32, _, str>(vec![1, 2, 3], ["a", "b", "c"]);