Skip to content

Instantly share code, notes, and snippets.

@jayhuang75
Created December 20, 2021 01:44
Show Gist options
  • Select an option

  • Save jayhuang75/3288250a4cb2ab24c48463b460f09fe6 to your computer and use it in GitHub Desktop.

Select an option

Save jayhuang75/3288250a4cb2ab24c48463b460f09fe6 to your computer and use it in GitHub Desktop.
go-train-delay-ml-pipeline-read-csv
async fn read_csv(&self, p: &Path) -> Result<PolarResult<DataFrame>, AppError> {
let file = File::open(p)?;
Ok(CsvReader::new(file).has_header(true).finish())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment