SyntaxFix
Write A Post
Hire A Developer
Questions
np.isnan combined with np.argwhere
x = np.array([[1,2,3,4], [2,3,np.nan,5], [np.nan,5,2,3]]) np.argwhere(np.isnan(x))
output:
array([[1, 2], [2, 0]])