📜  numpy 获取 nan 的索引 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:10.626000             🧑  作者: Mango

代码示例1
x = np.array([[1,2,3,4],
              [2,3,np.nan,5],
              [np.nan,5,2,3]])
np.argwhere(np.isnan(x))