title: How to duplicate a row or column in a numpy array?
body: <p>Having this <code>numpy</code> array:</p>
  
  <pre><code>[[0 1 2]
   [3 4 5]
   [6 7 8]] 
  </code></pre>
  
  <p>How do I duplicate for example row 1 so I get the below?:</p>
  
  <pre><code>[[0 1 2]
   [3 4 5]
   [3 4 5]
   [6 7 8]] 
  </code></pre>