title: Vector filling array using numpy
body: <pre><code>v1 = np.zeros(20) 
  v2 = np.zeros(20)
  
  data = [ list of length 20]
  
  for i, ele in enumerate(data):
        if ele.type != 'foo'
             v1[i] = 1
             v2[i] = 20
  </code></pre>
  
  <p>I am not sure if this is the right way to do this in "vector" world??</p>