As I now that numpy.ndarray.max using axis argument, it should return array of maximums over that axis. But I get results as if the axes are swapped.
import numpy as np
a = np.array([[1,5,50],[89,7,14]])
a.max(axis=0)
array([89, 7, 50])
a.max(axis=1)
array([50, 89])
Isn't these results are swapped? Since when I use axis=0, I should get the maximums per row, and when using axis=1 I should get the maximums per column. However, the results are swapped here. how could that be?