@@ -164,7 +164,7 @@ class Table {
164
164
* background(255); // Set background to white
165
165
*
166
166
* // Load the CSV file with a header row
167
- * table = await loadTable('mammals.csv', ',', 'header');
167
+ * table = await loadTable('assets/ mammals.csv', ',', 'header');
168
168
*
169
169
* // Get the row at index 1 (second row)
170
170
* let row = table.getRow(1);
@@ -204,7 +204,7 @@ class Table {
204
204
* background(255);
205
205
*
206
206
* // Load the CSV file with a header row
207
- * table = await loadTable('mammals.csv', ',', 'header');
207
+ * table = await loadTable('assets/ mammals.csv', ',', 'header');
208
208
*
209
209
* let rows = table.getRows();
210
210
*
@@ -263,7 +263,7 @@ class Table {
263
263
* background(255); // Set background to white
264
264
*
265
265
* // Load the CSV file with a header row
266
- * table = await loadTable('mammals.csv', ',', 'header');
266
+ * table = await loadTable('assets/ mammals.csv', ',', 'header');
267
267
*
268
268
* // Find the row with the animal named "Zebra"
269
269
* let row = table.findRow('Zebra', 'name');
@@ -325,7 +325,7 @@ class Table {
325
325
* background(255); // Set background to white
326
326
*
327
327
* // Load the CSV file with a header row
328
- * table = await loadTable('mammals.csv', ',', 'header');
328
+ * table = await loadTable('assets/ mammals.csv', ',', 'header');
329
329
*
330
330
* // Add another goat entry
331
331
* let newRow = table.addRow();
@@ -944,7 +944,7 @@ class Table {
944
944
* background(255);
945
945
*
946
946
* // Load the CSV file with a header row
947
- * table = await loadTable('mammals.csv', ',', 'header');
947
+ * table = await loadTable('assets/ mammals.csv', ',', 'header');
948
948
*
949
949
* // Update the first row: change species to "Canis Lupus" and name to "Wolf"
950
950
* table.set(0, 'species', 'Canis Lupus');
@@ -997,7 +997,7 @@ class Table {
997
997
* background(255);
998
998
*
999
999
* // Load the CSV file with a header row
1000
- * table = await loadTable('mammals.csv', ',', 'header');
1000
+ * table = await loadTable('assets/ mammals.csv', ',', 'header');
1001
1001
*
1002
1002
* // Set the value in row 1, column "id" to the number 1
1003
1003
* table.setNum(1, 'id', 1);
@@ -1041,7 +1041,7 @@ class Table {
1041
1041
* background(255);
1042
1042
*
1043
1043
* // Load the CSV file from the assets folder with a header row
1044
- * table = await loadTable('mammals.csv', ',', 'header');
1044
+ * table = await loadTable('assets/ mammals.csv', ',', 'header');
1045
1045
*
1046
1046
* // Add a new row with the new animal data
1047
1047
* let newRow = table.addRow();
@@ -1141,7 +1141,7 @@ class Table {
1141
1141
* background(255); // Set background to white
1142
1142
*
1143
1143
* // Load the CSV file with a header row
1144
- * table = await loadTable('mammals.csv', ',', 'header');
1144
+ * table = await loadTable('assets/ mammals.csv', ',', 'header');
1145
1145
*
1146
1146
* // Compute the result: id at row 1, column 0 plus 100 (i.e. 1 + 100 = 101)
1147
1147
* let result = table.getNum(1, 0) + 100;
@@ -1182,7 +1182,7 @@ class Table {
1182
1182
* background(255); // Set background to white
1183
1183
*
1184
1184
* // Load the CSV file with a header row
1185
- * table = await loadTable('mammals.csv', ',', 'header');
1185
+ * table = await loadTable('assets/ mammals.csv', ',', 'header');
1186
1186
*
1187
1187
* // Set text properties
1188
1188
* fill(0); // Text color: black
0 commit comments