how to a numpy array of string to int code example Example: python ndarray string array into int y = y.astype(np.uint8)