title: How does numpy.transpose work for this example?
body: <p>I have difficulty understanding how numpy.transpose actually works.
  For example</p>
  
  <pre><code>a_value = array([[[0, 1],
                    [2, 3]],
  
                   [[4, 5],
                    [6, 7]]])
  </code></pre>
  
  <p>and when I do</p>
  
  <pre><code>np.transpose(a_value, (2, 1, 0))
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>array([[[0, 4],
          [2, 6]],
  
         [[1, 5],
          [3, 7]]])
  </code></pre>
  
  <p>How can I derive this transpose manually? I need to understand the formula or the steps intuitively in the above case so I can generalize it for higher dimensions. </p>