Function version of the eponymous method.
(a, axis=np._NoValue, kind=None, order=None, endwith=True, fill_value=None)
| 6999 | argmax = _frommethod('argmax') |
| 7000 | |
| 7001 | def argsort(a, axis=np._NoValue, kind=None, order=None, endwith=True, fill_value=None): |
| 7002 | "Function version of the eponymous method." |
| 7003 | a = np.asanyarray(a) |
| 7004 | |
| 7005 | # 2017-04-11, Numpy 1.13.0, gh-8701: warn on axis default |
| 7006 | if axis is np._NoValue: |
| 7007 | axis = _deprecate_argsort_axis(a) |
| 7008 | |
| 7009 | if isinstance(a, MaskedArray): |
| 7010 | return a.argsort(axis=axis, kind=kind, order=order, |
| 7011 | endwith=endwith, fill_value=fill_value) |
| 7012 | else: |
| 7013 | return a.argsort(axis=axis, kind=kind, order=order) |
| 7014 | argsort.__doc__ = MaskedArray.argsort.__doc__ |
| 7015 | |
| 7016 | def sort(a, axis=-1, kind=None, order=None, endwith=True, fill_value=None): |