From 09c579f08f56840a36bf3acb6357c4b50b41754d Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 15 Aug 2022 01:06:11 +0300 Subject: first row also contains values for correlation current datasetup passes no column names --- src/correlations.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src') diff --git a/src/correlations.rs b/src/correlations.rs index 3459f83..6b38ffe 100644 --- a/src/correlations.rs +++ b/src/correlations.rs @@ -139,21 +139,6 @@ impl<'a> Compute<'a> { Ok(mut buffer_read) => { let mut n_string = String::new(); - //assumption made is that first row doesn't contain an empty value - - let _column_names = match buffer_read.read_line(&mut n_string) { - Some(row) => row - .unwrap() - .split(self.file_delimiter) - .collect::>(), - - None => { - //no content in file - - panic!("expected a row") - } - }; - while let Some(val) = buffer_read.read_line(&mut n_string) { if let Ok(array_new_val) = val { let ty = parse_rows_with_names( -- cgit 1.4.1