def remove_nanrows(y, x):
 mask = (~ np.isnan(y))
 mask *= (~ np.isnan(x).any((-1)))
 y = y[mask]
 x = x[mask]
 return (y, x)

def remove_nanrows ( y , x ) : mask = ( ~ np . isnan ( y ) ) mask *= ( ~ np . isnan ( x ) . any ( ( - 1 ) ) ) y = y [ mask ] x = x [ mask ] return ( y , x )
remove common rows in [y .