We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 270b296 commit e4dd3baCopy full SHA for e4dd3ba
src/io.rs
@@ -57,7 +57,7 @@ pub fn open_from_csv(
57
// Parse the remaining columns and populate the dataset
58
for (i, value) in record.iter().skip(1).enumerate() {
59
if let Some(dataset_column) = data.dataset.get_mut(i) {
60
- dataset_column.push(value.parse()?);
+ dataset_column.push(value.trim().parse().unwrap_or(0.0));
61
} else {
62
return Err("Unexpected number of data columns in the CSV".into());
63
}
0 commit comments