title: Concatenate several np arrays in python
body: <p>I have several bumpy arrays and I want to concatenate them. I am using <code>np.concatenate((array1,array2),axis=1)</code>. My problem now is that I want to make the number of arrays parametrizable, I wrote this function</p>
  
  <pre><code>x1=np.array([1,0,1])
  x2=np.array([0,0,1])
  x3=np.array([1,1,1])  
  
  def conc_func(*args):
      xt=[]
      for a in args:
          xt=np.concatenate(a,axis=1)
      print xt
      return xt
  
  xt=conc_func(x1,x2,x3)
  </code></pre>
  
  <p>this function returns ([1,1,1]), I want it to return ([1,0,1,0,0,1,1,1,1]). I tried to add the for loop inside the <code>np.concatenate</code> as such </p>
  
  <pre><code>xt =np.concatenate((for a in args: a),axis=1)
  </code></pre>
  
  <p>but I am getting a syntax error. I can't used neither append nor extend because I have to deal with <code>numpy arrays</code> and not <code>lists</code>. Can somebody help?</p>
  
  <p>Thanks in advance</p>