title: Python 3D Array Indexing
body: <p>I am confused by the following.</p>
  <pre><code>B = np.array([[[1, 2], [3, 4]], [[5, 6], [7, 8]]])
  print(B[0,1,0])
  </code></pre>
  <p>This returns the value of 3. But my expectation is that it should return 2 because it is the first row, second column, first &quot;page&quot;.</p>
  <p>Furthermore, I am confusing because I thought python by default was row-major indexing. So if I did <code>np.ravel(B)</code> my expectation is that it should read out the numbers as <code>1 5 2 6 3 7 4 8</code> (last index, the &quot;page&quot;, varies fastest). But instead when I do this I get back <code>1 2 3 4 5 6 7 8</code>.</p>
  <p>What am I missing?</p>