nmrglue.fileio.table.reorder_rows

nmrglue.fileio.table.reorder_rows(rec, new_order)[source]

Reorder or delete rows in a records array.

This function can also be used to delete multiple rows from a records array, only the rows in the new_order list are retained in the new records array.

Parameters :

rec : recarray

Records array.

new_order : list

List of row indices and order in new records array. Only the rows in this list are retained in the new records array. Therefore this function can also be used to delete multiple rows from a records array.

Returns :

new_rec : recarray

New records array with rows reordered.

Previous topic

nmrglue.fileio.table.delete_row

Next topic

nmrglue.fileio.table.insert_column

This Page