I have an array as :
A
Out[159]:
array([[ 1, 2, 3, 4, 5, 6, 7, 8],
[ 2, 4, 6, 8, 10, 12, 14, 16]])
Now if I find the shape of :
A[0:1].shape
Out[150]: (1, 8)
While, if i try the same for
A[ [0,0,1,1], [0,3,2,5] ].shape
Out[151]: (4,)
First array seems to be 1 row and 8 columns and the second one seems to be 1 row and 4 columns, then why is the second answer shown as (4,) and not as (1,4) ?