>>matrix = np.array([
[5, 10, 15],
[20, 25, 30],
[35, 40, 45]
])
>> matrix[:,1]
array([10, 25, 40])
>> matrix = np.array([
[5, 10, 15],
[20, 25, 30],
[35, 40, 45]
])
>> matrix[:,0:2]
array([[ 5, 10],
[20, 25],
[35, 40]])
>> matrix[:,0:2]
array([[ 5, 10],
[20, 25],
[35, 40]])
>> matrix[1:3,:]
array([[20, 25, 30],
[35, 40, 45]])
>> matrix[1:3,1]
array([25, 40])
>> matrix[1:3,1:2]
array([25],
[40])