import numpy as np


a = np.array([[50,10,30],
              [60,20,40],
              [70,80,90]])
# return maxmum element from all the dimension
print(np.amax(a))

#maxmum from each column (axis=0 means column-wise operation)
print(np.amax(a,axis=0))

#maxmum from each row (axis=1 means row-wise operation)
print(np.amax(a,axis=1))
