numpy.msort()

numpy.msort

numpy.msort(a) [source]

Return a copy of an array sorted along the first axis.

Parameters:

a : array_like

Array to be sorted.

Returns:

sorted_array : ndarray

Array of the same type and shape as a.

See also

sort

Notes

np.msort(a) is equivalent to np.sort(a, axis=0).

© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.msort.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部