title: python - increase array size and initialize new elements to zero
body: <p>I have an array of a size 2 x 2 and I want to change the size to 3 x 4. </p>
  
  <pre><code>A = [[1 2 ],[2 3]]
  A_new = [[1 2 0 0],[2 3 0 0],[0 0 0 0]]
  </code></pre>
  
  <p>I tried 3 shape but it didn't and append can only append row, not column. I don't want to iterate through each row to add the column.</p>
  
  <p>Is there any vectorized way to do this like that of in MATLAB: <code>A(:,3:4) = 0;</code> and <code>A(3,:) = 0;</code> this converted the <code>A</code> from 2 x 2 to 3 x 4. I was thinking <strong>is there a similar way in python?</strong></p>