Read CSV file into Polars dataframe with Rust

I would like to read the CSV file into a Polars dataframe. Copying the code from the official documentation fails to run with cargo. use polars::prelude::*; use std::fs::File; fn example() -> Result<DataFrame> { let file = File::open("iris.csv").expect("could not open file"); CsvReader::new(file) .infer_schema(None) .has_header(true) .finish() } fn main() { let df = example(); println!("{:?}", df); }… Read More Read CSV file into Polars dataframe with Rust