This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / ma / core / _deprecate_argsort_axis

function

numpy.ma.core:_deprecate_argsort_axis

source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py :92

Signature

def   _deprecate_argsort_axis ( arr )

Summary

Adjust the axis passed to argsort, warning if necessary

Parameters

arr

The array which argsort was called on

np.ma.argsort has a long-term bug where the default of the axis argument
is wrong (gh-8701), which now must be kept for backwards compatibility.
Thankfully, this only makes a difference when arrays are 2- or more-
dimensional, so we only need a warning then.

Aliases

  • numpy.ma.core._deprecate_argsort_axis