title: Access n-th dimension in python
body: <p>I want a easy to read access to some parts of a multidimensional numpy array. For any array accessing the first dimension is easy (<code>b[index]</code>). Accessing the sixth dimension on the other hand is "hard" (especially to read). </p>
  
  <pre><code>b[:,:,:,:,:,index] #the next person to read the code will have to count the :
  </code></pre>
  
  <p>Is there a better way to do this?
  Especially is there a way, where the axis is not known while writing the program?</p>
  
  <p>Edit:
  The indexed dimension is not necessarily the last dimension</p>