title: Extract required rows from a numpy array
body: <p>I have a given numpy array as follows.</p>
  
  <pre><code>import numpy as np
  
  data = np.array([[4,6,8,9,3,2,4,4,1], # no of 0s == 0
                    [4,6,8,9,3,0,0,4,0], # no of 0s == 3
                    [4,6,0,9,0,2,0,4,0], # no of 0s == 4
                    [4,6,8,0,3,0,0,0,0], # no of 0s == 5
                    [4,6,8,9,3,2,0,4,0]]) # no of 0s == 2
  </code></pre>
  
  <p>From the given array, data , I have to extract 3 rows which contain the least 0s.
  So, the expected are, 1st, last, and second rows.</p>
  
  <pre><code>res = np.array([[4,6,8,9,3,2,4,4,1], # no of 0s == 0
                        [4,6,8,9,3,0,0,4,0], # no of 0s == 3                      
                        [4,6,8,9,3,2,0,4,0]]) # no of 0s == 2
  </code></pre>
  
  <p>How can I do it guys?</p>