I'm quite new to Python. I was reading and testing codes in the Numpy official documentation. At the end of part 2.6.2 (Indexing with Boolean Arrays) there's an example that returns a weird answer. Funny though, the documentation says " a weird thing to do".
a = np.arange(12).reshape(3, 4)
b1 = np.array([False, True, True])
b2 = np.array([True, False, True, False])
a[b1, b2]
I think it should return the following answer (or sth like that):
array([ 4, 6, 8, 10])
but it returns:
array([ 4, 10])
here is a logic map. Am I wrong somehow? Logic Map