Say x is a 3x3 numpy array that contains the following:
import numpy as np
x = np.array([[ 1., 2., 3.],
[ 4., 5., 6.],
[ 7., 8., 9.]])
is there some indexing that can give me the following subarray:
array([[ 1., 2.],
[ 5., 6.]])
x[(0,2), 0:2]but to no avail. I could not get subsets like the one i mentioned.