- craftutils.wrap.dragons.Table.remove_row(index)
Remove a row from the table.
Parameters¶
- indexint
Index of row to remove
Examples¶
Create a table with three columns ‘a’, ‘b’ and ‘c’:
>>> t = Table([[1, 2, 3], [0.1, 0.2, 0.3], ['x', 'y', 'z']], ... names=('a', 'b', 'c')) >>> print(t) a b c --- --- --- 1 0.1 x 2 0.2 y 3 0.3 zRemove row 1 from the table:
>>> t.remove_row(1) >>> print(t) a b c --- --- --- 1 0.1 x 3 0.3 zTo remove several rows at the same time use remove_rows.