title: Python append to ndarray
body: <p>I have an <code>np.ndarray</code>:</p>
  
  <pre><code>[[0 4 0 0] [0 5 8 2] [2 7 3 2]]
  </code></pre>
  
  <p>I want to append in position 0 another element so that the output looks like:</p>
  
  <pre><code>[['cat' 0 4 0 0] ['cat' 0 5 8 2] ['cat' 2 7 3 2]]
  </code></pre>
  
  <p>I've tried <code>np.insert, append, vstack</code>, and <code>concatenate</code> as indicated in other posts. But, none work. I suspect this is because the type of my array is <code>&lt;class 'numpy.ndarray'&gt;</code>. I've also tried converting it to a list and appending it or to a normal <code>np.array</code>, but nothing seems to work.</p>
  
  <p>Any ideas?</p>
  
  <p>Edit:</p>
  
  <p>I tried:</p>
  
  <pre><code>    arr=[np.append('cat',i) for i in my_array]
  </code></pre>
  
  <p>This works, however, the output looks like:</p>
  
  <pre><code>[array(['cat' 0 4 0 0], dtype=object), array(['cat' 0 5 8 2], dtype=object), array(['cat' 2 7 3 2], dtype=object)]
  </code></pre>