I created 2D array and I did boolean indexing with 2 bool index arrays. first one is for axis 0, next one is for axis 1.
I expected that values on cross True and True from each axis are selected like Pandas. but the result is not.
I wonder how it works that code below. and I want to get the link from official numpy site describing this question.
Thanks in advance.
a = np.arange(9).reshape(3,3)
a
----------------------------
array([[0, 1, 2],
[3, 4, 5],
[6, 7, 8]])
a[ [True, False, True], [True, False, True] ]
--------------------------
array([0, 8])
My expectation is [0, 6, 2, 8].
(I know how to get the result that I expect.)
arr[[0,2],[0,2]].arr[[[0],[2]], [0,2]]for the (2,2) block.