# Numpy array operations are very similar to list operations
# Indexing in numpy
array[3] # will give the 4th element in 1-D array
array[2, 4] # will give the element on 3rd row and 5th column in 2-D array
array_2d[0] # first row in 2D array
array_2d[ : , 2] # third column in 2D array
array_2d[3:6, 3:6] # slicing
array_2d[3:6:2, 3:6:2] # slicing with every second element
np.sort(array_2d, axis=0) # sorting array values along the rows of the array
np.sort(array_2d, axis=1) # sorting array values along the columns of the array