-
craftutils.wrap.dragons.Table.Column.copy(order=
'C', data=None, copy_data=True) Return a copy of the current instance.
If
datais supplied then a view (reference) ofdatais used, andcopy_datais ignored.Parameters¶
- order{‘C’, ‘F’, ‘A’, ‘K’}, optional
Controls the memory layout of the copy. ‘C’ means C-order, ‘F’ means F-order, ‘A’ means ‘F’ if
ais Fortran contiguous, ‘C’ otherwise. ‘K’ means match the layout ofaas closely as possible. (Note that this function and :func:numpy.copy are very similar, but have different default values for their order= arguments.) Default is ‘C’.- dataarray, optional
If supplied then use a view of
datainstead of the instance data. This allows copying the instance attributes and meta.- copy_databool, optional
Make a copy of the internal numpy array instead of using a reference. Default is True.
Returns¶
- colColumn or MaskedColumn
Copy of the current column (same type as original)