human
number of non nan rows in a row.
assistant
Here is a Python function for a number of non-nan rows in a row

import numpy as np

def _number_of_non_nan_rows(data):
    """
    Returns the number of non nan rows in a row.
    """
    return len(data[~np.isnan(data)])

# Enter the data
data = np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10], [11, 12, 13, 14, 15], [16, 17, 18, 19, 20]])

# Calling the function
print((_number_of_non_nan_rows(data)))

#Example Output
# 20

#Remember to inspect code for bugs.