title: How to get the two smallest values from a numpy array
body: <p>I would like to take the two smallest values from an array <code>x</code>. But when I use <code>np.where</code>:</p>
  
  <pre><code>A,B = np.where(x == x.min())[0:1]
  </code></pre>
  
  <p>I get this error: </p>
  
  <blockquote>
    <p>ValueError: need more than 1 value to unpack</p>
  </blockquote>
  
  <p>How can I fix this error? And do I need to arange numbers in ascending order in array?</p>