nlargest
Also written: .nlargest(), nsmallest, .nsmallest()
Sorts and takes the top n rows by a column in one step; `nsmallest` takes the bottom n.
Also written: .nlargest(), nsmallest, .nsmallest()
Sorts and takes the top n rows by a column in one step; `nsmallest` takes the bottom n.