I am trying to translate the first answer in Remove NaN row from X array and also the corresponding row in Y from Python to Julia 0.5.0 without importing numpy. I can replicate the "removing the NaNs" part with:
x1 = x[!isnan(x)]
but only using that reduces the 2D array down to 1D, and I don't want that. What would be the Julia equivalent of numpy.any
in this case? Or if there isn't an equivalent, how can I keep my array 2D and delete entire rows that contain NaNs?