-
craftutils.wrap.dragons.Table.Column.insert(obj, values, axis=
0) Insert values before the given indices in the column and return a new ~astropy.table.Column object.
Parameters¶
- objint, slice or sequence of int
Object that defines the index or indices before which
valuesis inserted.- valuesarray-like
Value(s) to insert. If the type of
valuesis different from that of the column,valuesis converted to the matching type.valuesshould be shaped so that it can be broadcast appropriately.- axisint, optional
Axis along which to insert
values. Ifaxisis None then the column array is flattened before insertion. Default is 0, which will insert a row.
Returns¶
- out~astropy.table.Column
A copy of column with
valuesandmaskinserted. Note that the insertion does not occur in-place: a new column is returned.