numpy.generic.newbyteorder¶
method
-
generic.
newbyteorder
(new_order='S')¶ Return a new
dtype
with a different byte order.Changes are also made in all fields and sub-arrays of the data type.
The new_order code can be any from the following:
‘S’ - swap dtype from current to opposite endian
{‘<’, ‘little’} - little endian
{‘>’, ‘big’} - big endian
‘=’ - native order
{‘|’, ‘I’} - ignore (no change to byte order)