For generating a new column from two given columns, how can I reference these columns by index? #1110
-
I have rather often sheets where a few headers are not unique, so in order to generate new columns (via the How can I do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hey! One (longish) way to do this is with This gets the visible column by index (in this case 1), and then gets the raw value of that row. There are other ways to get the data, based on what you want and speed (getTypedValue, getDisplayValue etc.), see here: https://www.visidata.org/docs/api/columns#visidata.Column.getValue |
Beta Was this translation helpful? Give feedback.
Hey!
One (longish) way to do this is with
=visibleCols[1].getValue(row)
This gets the visible column by index (in this case 1), and then gets the raw value of that row. There are other ways to get the data, based on what you want and speed (getTypedValue, getDisplayValue etc.), see here: https://www.visidata.org/docs/api/columns#visidata.Column.getValue