title: Transpose 3D Numpy Array
body: <p>Trying to transpose each numpy array in my numpy array.</p>
  
  <p>Here is an example of what I want:</p>
  
  <p>A:</p>
  
  <pre><code> [[[ 1  2  3]
     [ 4  5  6]]
  
    [[ 7  8  9]
     [10 11 12]]]
  </code></pre>
  
  <p>A Transpose:</p>
  
  <pre><code> [[[ 1  4]
     [ 2  5]
     [ 3  6]]
  
    [[ 7  10]
     [ 8  11]
     [ 9  12]]]
  </code></pre>
  
  <p>Tried doing this using np.apply_along_axis function but was not getting the correct results.I am trying to apply this to a very large array and any help would be greatly appreciated!</p>
  
  <pre><code>A=np.arange(1,13).reshape(2,2,3)
  A=np.apply_along_axis(np.transpose, 0, A)
  </code></pre>