What is the best way to access a specific element in a table?
What if you want to access a single element in a table, rather than a whole row or whole column?
For accessing a single element, look at the .getColumn
and .get
methods.
For example:
table.getColumn("ColName").get([row #]) //indexing starts at 0, and is positional
Note that getColumn
and get
are simple for accessing a single element in
position space; but are inefficient for accessing many values. ColumnSource and Chunk objects provide much more efficient bulk data access.