let's assume that I have a 2-dimensional NumPy array that looks like that and i want to extract the left bottom square (4x4):
arr_2d = [[ 5,10,15],
[20,25,30],
[35,40,45]]
why there is difference between this way:
arr_2d[row,col]
and this way:
arr_2d[row][col]
im saying that there is a differnce because i got different outputs while trying to do this:
arr_2d[1:3,1:3] #output was: [[25,30],
[40,45]]
arr_2d[1:3][1:3] #output was: [[35, 40, 45]]
if I'm wrong in my question can you tell me why, please?
thanks in advance!