title: How do I delete a row in a numpy array which contains a zero?
body: <p>I'm trying to write a function to delete all rows in which have a zero value in. 
  This is not from my code, but an example of the idea I am using:</p>
  
  <pre><code>import numpy as np
  a=np.array(([7,1,2,8],[4,0,3,2],[5,8,3,6],[4,3,2,0]))
  b=[]
  
  for i in range(len(a)):
      for j in range (len(a[i])):
          if a[i][j]==0:
              b.append(i)
  
  print 'b=', b
  for zero_row in b:
      x=np.delete(a,zero_row, 0)
  
  print 'a=',a
  </code></pre>
  
  <p>and this is my output:</p>
  
  <pre><code>b= [1, 3]
  a= [[7 1 2 8]
   [4 0 3 2]
   [5 8 3 6]
   [4 3 2 0]]
  </code></pre>
  
  <p>How do I get rid of the rows with the index in b?
  Sorry, I'm fairly new to this any help would be really appreciated.</p>