I have 2D array with plenty of lines fully fed with NaN values. I would like to find where the first real number is present, i.e. the line number where it appears. My simplified array looks like this:
m = np.array([[np.nan, np.nan, np.nan], [np.nan, np.nan, np.nan], [np.nan, 17, np.nan],[np.nan, 18, 25]])
The expected result is 2, the line number where 17 appears! Thank you