-
craftutils.wrap.dragons.Table.as_array(keep_byteorder=
False, names=None) Return a new copy of the table in the form of a structured np.ndarray or np.ma.MaskedArray object (as appropriate).
Parameters¶
- keep_byteorderbool, optional
By default the returned array has all columns in native byte order. However, if this option is True this preserves the byte order of all columns (if any are non-native).
- nameslist, optional:
List of column names to include for returned structured array. Default is to include all table columns.
Returns¶
- table_arrayarray or ~numpy.ma.MaskedArray
Copy of table as a numpy structured array. ndarray for unmasked or ~numpy.ma.MaskedArray for masked.