Created
January 25, 2015 19:07
-
-
Save ledlogic/7d0d9726158f11c8a8a3 to your computer and use it in GitHub Desktop.
Ruby program to load single column CSV file and compute descriptive statistics.
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
require 'csv' | |
require 'descriptive_statistics' | |
#data array to store values | |
data = [] | |
# load data | |
CSV.foreach('20150124.csv') do |row| | |
data << row[0] | |
end | |
puts data.descriptive_statistics |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment