Hi. I am so new to processing and starting a project where I need to upload data from a csv and take data to display with scale and map of the data. It is simple data and have been able to upload the data. A sample of my data is shown below:
name | male | female |
---|---|---|
ALL OCCUPATIONS | 895 | 726 |
MANAGEMENT | 1486 | 1139 |
BUSINESS | 1327 | 1004 |
COMPUTATIONAL | 1503 | 1245 |
Currently my code looks like this:
Table wordcloud;
void setup() {
size(100, 100);
wordcloud = loadTable("wordcloud.csv", "header");
for (TableRow row : wordcloud.rows()) {
String id = row.getString("name");
int female = row.getInt("female");
int male =row.getInt("male");
println(id + ", occupation pay for females is " + female + "." + " " + id + " occupation pay for males is " +male + ".");
}
}