title: Numpy: What is the correct way to upsample an array?
body: <pre><code>octave:1&gt; a=[1 2 3]
  a =
  
     1   2   3
  
  octave:2&gt; k=[a;zeros(9,length(a))]
  k =
  
     1   2   3
     0   0   0
     0   0   0
     0   0   0
     0   0   0
     0   0   0
     0   0   0
     0   0   0
     0   0   0
     0   0   0
  </code></pre>
  
  <p>Is the below method the correct way to achieve it in Python:</p>
  
  <pre><code>&gt;&gt;&gt; a=[1, 2, 3]
  &gt;&gt;&gt; np.append(a,np.zeros((9,len(a))))
  array([ 1.,  2.,  3.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,
          0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,
          0.,  0.,  0.,  0.])
  </code></pre>