Update histogram.rs

This commit is contained in:
Jonathan Turner 2019-11-27 15:32:05 +13:00 committed by GitHub
parent 186b75a848
commit 7a28ababd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ pub fn histogram(
let column_names_supplied: Vec<_> = rest.iter().map(|f| f.item.clone()).collect();
let frequency_column_name = if column_names_supplied.is_empty() {
"frecuency".to_string()
"frequency".to_string()
} else {
column_names_supplied[0].clone()
};