title: How to change array shapes in in numpy?
body: <p>If I create an array <code>X = np.random.rand(D, 1)</code> it has shape <code>(3,1)</code>:</p>
  
  <pre><code>[[ 0.31215124]
   [ 0.84270715]
   [ 0.41846041]]
  </code></pre>
  
  <p>If I create my own array <code>A = np.array([0,1,2])</code> then it has shape <code>(1,3)</code> and looks like</p>
  
  <pre><code>[0 1 2]
  </code></pre>
  
  <p>How can I force the shape <code>(3, 1)</code> on my array <code>A</code>?</p>