title: How to "inflate" an array in numpy?
body: <p>I have an array that looks like, for example</p>
  
  <pre><code>01
  23
  </code></pre>
  
  <p>I want to "inflate" it so that the resulting array looks like</p>
  
  <pre><code>0 0 0 1 1 1
  0 0 0 1 1 1
  0 0 0 1 1 1
  2 2 2 3 3 3
  2 2 2 3 3 3
  2 2 2 3 3 3
  </code></pre>
  
  <p>I've played around with numpy <code>tile</code> and various reps and axes, but nothing gives me quite what I want.  I can see how to do this with nested loops, but I'm looking for a "pythonic" way to accomplish this.  Anyone know how?  And BTW, the real problem I am dealing with involves a 3D array.</p>