np.int, np.float etc appear to be deprecated. You only need to simply say int, float etc in the dtype specifier. That is, instead of dtype=(np.int, np.float), say dtype=(int, float) and so on.