nmrglue.fileio.table.reorder_columns
- nmrglue.fileio.table.reorder_columns(rec, new_order)[source]
Reorder or delete columns in a records array.
- Parameters
- recrecarray
Records array.
- new_orderlist
List of column indices and order in new records array. Only the columns in this list are retained in the new records array. Therefore this function can also be used to delete multiple columns from a records array.
- Returns
- new_recrecarray
New records array with columns reordered.