It is used to return a copy of an array sorted along the first axis. It is same as numpy.sort() along the axis=0.
Syntax:
numpy.msort(a)
Example:
a= np.array([30,10,20])
np.msort(a)
Output:
array([10, 20, 30])
- Log in to post comments
It is used to return a copy of an array sorted along the first axis. It is same as numpy.sort() along the axis=0.
numpy.msort(a)
a= np.array([30,10,20])
np.msort(a)
Output:
array([10, 20, 30])