-
craftutils.wrap.dragons.Table.MaskedColumn.insert(obj, values, mask=
None, axis=0) Insert values along the given axis before the given indices and return a new ~astropy.table.MaskedColumn 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.- maskbool or array-like
Mask value(s) to insert. If not supplied, and values does not have a mask either, then False is used.
- 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.MaskedColumn
A copy of column with
valuesandmaskinserted. Note that the insertion does not occur in-place: a new masked column is returned.