nmrglue.fileio.table.append_column¶
-
nmrglue.fileio.table.
append_column
(rec, col, name=None, format=None)[source]¶ Append a column to the end of a records array.
- Parameters
- recrecarray
Records array.
- colarray_like
Array or similar object which will be converted into the new column.
- 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 is not an ndarray.
- Returns
- new_recrecarray
New records array with column appended.