diff options
-rw-r--r-- | numpy/lib/function_base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 15e24a0d9..9d59d79de 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3666,6 +3666,14 @@ def msort(a): ----- ``np.msort(a)`` is equivalent to ``np.sort(a, axis=0)``. + Examples + -------- + >>> a = np.array([[1,4],[3,1]]) + >>> np.msort(a) # sort along the first axis + array([[1, 1], + [3, 4]]) + + """ b = array(a, subok=True, copy=True) b.sort(0) |