Getting Started
Developer Resources
Indices and Tables
Swapping of bytes for provided arrays.
Notes
arr.newbyteorder(‘S’) swaps dtype interpretation, but not bytes in memory arr.byteswap() swaps bytes in memory, but not dtype interpretation arr.byteswap(True).newbyteorder(‘S’) completely swaps both
See also
https://docs.scipy.org/doc/numpy/user/basics.byteswapping.html