diff --git a/lib/datasets/ggplot2-dataset.rb b/lib/datasets/ggplot2-dataset.rb index 3ff31e8..91edfc4 100644 --- a/lib/datasets/ggplot2-dataset.rb +++ b/lib/datasets/ggplot2-dataset.rb @@ -17,7 +17,7 @@ def each data_path = cache_dir_path + data_base_name data_url = "#{download_base_url}/data-raw/#{data_base_name}" download(data_path, data_url) - CSV.open(data_path, headers: :first_row, converters: :all) do |csv| + CSV.open(data_path, headers: :first_row, converters: :numeric) do |csv| record_class = self.class::Record csv.each do |row| record = record_class.new(*row.fields)