Created
April 15, 2016 20:55
-
-
Save indefinit/48a01b53f9b929a8da4ecb459716e656 to your computer and use it in GitHub Desktop.
table.getColumn() error repro
This file contains 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
ANNUAL | JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | OCT | NOV | DEC | YEARS | # CITIES | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Average Temperature (F) | 7 | 24.5 | 18.3 | 10 | 3.4 | -0.8 | -4.3 | -6.7 | -7.1 | -3.5 | 4.6 | 15.7 | 23.7 | 23 | 48 | |
Average High Temperature (F) | 5.7 | 25.9 | 18.2 | 7.4 | 0.2 | -3.1 | -6.3 | -8.6 | -9.2 | -5.4 | 3.7 | 16.4 | 25.2 | 16 | 28 | |
Average Low Temperature (F) | -6.7 | 15.9 | 7.4 | -3.9 | -11.6 | -15.6 | -19.4 | -22.5 | -23.4 | -19.7 | -10.3 | 4.2 | 14.9 | 16 | 28 | |
Average Precipitation (in) | 16.4 | 1.1 | 1.3 | 1.6 | 1.7 | 1.5 | 1.3 | 1.5 | 1.4 | 1.6 | 1.4 | 1.1 | 1.1 | 17 | 26 |
This file contains 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
var table; | |
function preload() { | |
//my table is comma separated value "csv" | |
//and has a header specifying the columns labels | |
table = loadTable("data/antarctica_weather_averages.csv", "csv"); | |
} | |
function setup() { | |
createCanvas(400,400); | |
textSize(24); | |
//count the rows | |
//for(var i=0; i < table.getColumnCount(); i++){ | |
//println(table.getColumn(i)); | |
//} | |
println( table.getColumn("MAY") ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment