Extract all the border rows and columns from a 2-D array. code example Example: numpy 2d slicing print(a2[:, 1]) # [2, 5, 8]