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