title: Numpy - find rows where all elements are finite
body: <p>I have data which are stored in a numpy array with n rows and p columns. </p>
  
  <p>I would like to check which rows are fully finite and store this information in a boolean array to use it as a mask somewhere.</p>
  
  <p>I have solved it for the p=2 case, but would like to solve it for all cases</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>raw_test = np.array([[0, numpy.NaN], [0, 0], [numpy.NaN, numpy.NaN]])
  test = np.isfinite(raw_test)
  def multiply(x):
      return x[0] * x[1]
  
  numpy.apply_along_axis(multiply, 1, test)
  </code></pre>