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 :

rec : recarray

Records array.

col : array_like

Array or similar object which will be converted into the new column.

name : str, optional

Name of the column. If None col.dtypes.name will be used.

format : dtype, optional

Data type to convert the new column into before appending. Required if col is not an ndarray.

Returns :

new_rec : recarray

New records array with column appended.

Previous topic

nmrglue.fileio.table.insert_column

Next topic

nmrglue.fileio.table.delete_column

This Page