Created
December 20, 2021 01:44
-
-
Save jayhuang75/3288250a4cb2ab24c48463b460f09fe6 to your computer and use it in GitHub Desktop.
go-train-delay-ml-pipeline-read-csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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