Obtenez une colonne ou une rangée de matrice Numpy Python

test = numpy.array([[1, 2], [3, 4], [5, 6]])
column = test[:,0]
# column == array([1, 3, 5])
row = test[1,:]
# row == array([3, 4])
Anxious Alligator