Next: shebang, Previous: colnames, Up: Specific header arguments
:rownamesThe :rownames header argument can take on the values yes
or no, with a default value of no.
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.
#+TBLNAME: 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 See Indexable variable values.