nmrglue.fileio.table.insert_column
- nmrglue.fileio.table.insert_column(rec, N, col, name=None, format=None)[source]
Insert a column into a records array.
- Parameters
- recrecarray
Records array.
- colarray_like
Array or similar object which will be converted into the new column.
- Nint
Column number to insert new column before.
- namestr, optional
Name of the column. If None col.dtypes.name will be used.
- formatdtype, optional
Data type to convert the new column into before appending. Required if col in not an ndarray.
- Returns
- new_recrecarray
New records array with column inserted.