-
craftutils.wrap.dragons.Table.insert_row(index, vals=
None, mask=None) Add a new row before the given
indexposition in the table.The
valsargument can be:- sequence (e.g. tuple or list)
Column values in the same order as table columns.
- mapping (e.g. dict)
Keys corresponding to column names. Missing values will be filled with np.zeros for the column dtype.
- None
All values filled with np.zeros for the column dtype.
The
maskattribute should give (if desired) the mask for the values. The type of the mask should match that of the values, i.e. ifvalsis an iterable, thenmaskshould also be an iterable with the same length, and ifvalsis a mapping, thenmaskshould be a dictionary.Parameters¶
- valstuple, list, dict or None
Use the specified values in the new row
- masktuple, list, dict or None
Use the specified mask values in the new row