We are using numpy in Python as b = np.array([[1,2,3],[4,5,6],[7,8,9]])
. Then we use the command print(b[1:,:1])
, I'm just trying to understand what the b[1:,:1]
is referencing in the array.
The output is:
[[4]
[7]]
and I'm just trying to understand how that output is coming out if that makes sense.
I've tried looking it up on google but I havent been able to find an answer that explains well enough what is happening and how the array is being accesed by the [1:,:1]
.