title: ValueError: all the input arrays must have same number of dimensions
body: <p>I'm having a problem with <code>np.append</code>.</p>
  
  <p>I'm trying to duplicate the last column of 20x361 matrix <code>n_list_converted</code> by using the code below:</p>
  
  <pre><code>n_last = []
  n_last = n_list_converted[:, -1]
  n_lists = np.append(n_list_converted, n_last, axis=1)
  </code></pre>
  
  <p>But I get error: </p>
  
  <blockquote>
    <p>ValueError: all the input arrays must have same number of dimensions</p>
  </blockquote>
  
  <p>However, I've checked the matrix dimensions by doing</p>
  
  <pre><code> print(n_last.shape, type(n_last), n_list_converted.shape, type(n_list_converted))
  </code></pre>
  
  <p>and I get </p>
  
  <blockquote>
    <p>(20L,)  (20L, 361L) </p>
  </blockquote>
  
  <p>so the dimensions match? Where is the mistake?</p>