Suppose I have a numpy 2d array (m by n), I want to get indexes of all its rows contain at least one nan values.
It is relatively straightforward to do it in pure numpy as follows:
import numpy as np
X = np.array([[1, 2], [3, np.nan], [6, 9]])
has_nan_idx = np.isnan(X).any(axis=1)
has_nan_idx
>>> array([False, True, False])
How can I achieve the same using numba njit? For me, I got an error since numba does not support any with arguments.
Thanks.