title: Iterate over columns of a NumPy array and elements of another one?
body: <p>I am trying to replicate the behaviour of <code>zip(a, b)</code> in order to be able to loop simultaneously along two <code>NumPy</code> arrays. In particular, I have two arrays <code>a</code> and <code>b</code>:</p>
  
  <pre><code>a.shape=(n,m)
  b.shape=(m,) 
  </code></pre>
  
  <p>I would like to get for every loop a column of <code>a</code> and an element of <code>b</code>. </p>
  
  <p>So far, I have tried the following:</p>
  
  <pre><code>for a_column, b_element in np.nditer([a, b]):
      print(a_column)
  </code></pre>
  
  <p>However, I get printed the element <code>a[0,0]</code> rather than the column <code>a[0,:]</code>, which I want. </p>
  
  <p>How can I solve this?</p>