how to find the location of the nan in python code example Example: np where nan np.argwhere(np.isnan(x))