title: Why does a cartesian product yield "TypeError: iteration over a 0-d array"?
body: <p>I am trying to make a cartesian product from a list of arrays but it keeps giving me a <code>TypeError: iteration over a 0-d array</code></p>
  
  <p>I have a list which looks like:</p>
  
  <pre class="lang-py prettyprint-override"><code>print(a)
  &gt;&gt;&gt;[array([1., 2.]), array([3., 4.]), array(1400.)]
  </code></pre>
  
  <p>Now, when I try to do:</p>
  
  <pre class="lang-py prettyprint-override"><code>b=list(itertools.product(*a))
  &gt;&gt;&gt;TypeError: iteration over a 0-d array
  </code></pre>
  
  <p>What am I missing?</p>