title: Merge numpy arrays returned from loop
body: <p>I have a loop that generates numpy arrays:</p>
  
  <pre><code>for x in range(0, 1000):
     myArray = myFunction(x)
  </code></pre>
  
  <p>The returned array is always one dimensional. I want to combine all the arrays into one array (also one dimensional.</p>
  
  <p>I tried the following, but it failed</p>
  
  <pre><code>allArrays = []
  for x in range(0, 1000):
     myArray = myFunction(x)
     allArrays += myArray
  </code></pre>
  
  <p>The error is <code>ValueError: operands could not be broadcast together with shapes (0) (9095)</code>. How can I get that to work?</p>
  
  <p>For instance these two arrays:</p>
  
  <pre><code>[ 234 342 234 5454 34 6]
  [ 23 2 1 4 55 34]
  </code></pre>
  
  <p>Shall be merge into this array:</p>
  
  <pre><code>[ 234 342 234 5454 34 6 23 2 1 4 55 34 ]
  </code></pre>