Skip to content

Instantly share code, notes, and snippets.

@Steboss89
Created June 29, 2021 09:46
Show Gist options
  • Save Steboss89/e8bbf23b65e483f3b3cfc4730844df51 to your computer and use it in GitHub Desktop.
Save Steboss89/e8bbf23b65e483f3b3cfc4730844df51 to your computer and use it in GitHub Desktop.
Use polars feature ndarray
let ifile = "PATHDOFILE/2d_array.csv";
let df = read_csv(&ifile).unwrap();
let ndarray = df.to_ndarray::<Float64Type>().unwrap();
println!("{:?}", ndarray);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment