ndarray_to_bytes#

ndarray_to_bytes(ndarray: ndarray[Any, dtype[Any]]) bytes[source]#

Serialize NumPy ndarray to bytes.