DOC: Series.nlargest sorts index with duplicates · Issue #24268 · pandas-dev/pandas (original) (raw)

I think the description of this method is incorrect. The effect of parameter "keep" says, if we pass "first" to it, means to take the first duplicate value, while we pass "last" to it, means to take the last duplicate value.
However, its real effect is to sort the duplicate values by their indexes.
Hope we put it right soon.