import numpy as np


a = np.array([[50,10,30],
              [60,20,40],
              [70,80,90]])

# return middle element from sorted array
print()
print(np.median(a))


# return middle element from column-wise sorted array

print()
print(np.median(a,axis=0))

# return middle element from column-wise sorted array
print()
print(np.median(a,axis=1))

