numpy.generic.byteswap method generic.byteswap(/, inplace=False) Scalar method identical to ndarray.byteswap.