Every line of 'pandas find rows with nan' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
4 def find_null(data): 5 """ Finds the indices of all missing values. 6 7 Parameters 8 ---------- 9 data: numpy.ndarray 10 Data to impute. 11 12 Returns 13 ------- 14 List of tuples 15 Indices of all missing values in tuple format; (i, j) 16 17 """ 18 null_xy = np.argwhere(np.isnan(data)) 19 return null_xy