astropy.utils
astropy.utils.masked
Like numpy.nanargmin, skipping masked values as well.
numpy.nanargmin
No exceptions are raised for fully masked/NaN slices. Instead, these give index 0.