numpy.isnan — NumPy v1.22 Manual
https://numpy.org/doc/stable/reference/generated/numpy.isnan.htmlnumpy.isnan ¶ numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'isnan'> ¶ Test element-wise for NaN and return result as a boolean array. Parameters xarray_like Input array. outndarray, None, or tuple of ndarray and None, optional