title: How to create a numpy array of zeros of a list's length?
body: <p>I have a list, say</p>
  
  <pre><code>a = [3, 4, 5, 6, 7]
  </code></pre>
  
  <p>And i want to create a numpy array of zeros of that list's length.</p>
  
  <p>If I do </p>
  
  <pre><code>b = np.zeros((len(a), 1))
  </code></pre>
  
  <p>I get</p>
  
  <blockquote>
    <p>[[0, 0, 0, 0, 0]]</p>
  </blockquote>
  
  <p>instead of</p>
  
  <blockquote>
    <p>[0, 0, 0, 0, 0]</p>
  </blockquote>
  
  <p><strong>What is the best way to get the latter option?</strong></p>