Numpy integer nan
Is there a way to store NaN in a Numpy array of integers? I get: a=np.array([1],dtype=long) a[0]=np.nan Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: cannot convert float NaN to integer Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you … Read more