Answers for "view the index of nan in numpy"

1

numpy get index of nan

x = np.array([[1,2,3,4],
              [2,3,np.nan,5],
              [np.nan,5,2,3]])
np.argwhere(np.isnan(x))
Posted by: Guest on August-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language