org: rownames
14.8.2.20 ‘:rownames’
.....................
The ‘:rownames’ header argument can take on the values ‘yes’ or ‘no’,
with a default value of ‘no’. Note that Emacs Lisp code blocks ignore
the ‘:rownames’ header argument entirely given the ease with which
tables with row names may be handled directly in Emacs Lisp.
• ‘no’ No row name pre-processing will take place.
• ‘yes’ The first column of the table is removed from the table
before processing, and is then reapplied to the results.
#+NAME: with-rownames
| one | 1 | 2 | 3 | 4 | 5 |
| two | 6 | 7 | 8 | 9 | 10 |
#+NAME: echo-table-once-again
#+BEGIN_SRC python :var tab=with-rownames :rownames yes
return [[val + 10 for val in row] for row in tab]
#+END_SRC
#+RESULTS: echo-table-once-again
| one | 11 | 12 | 13 | 14 | 15 |
| two | 16 | 17 | 18 | 19 | 20 |
Please note that row names are not removed before the table is
indexed using variable indexing Indexable variable values
var.