Skip to content

Glossary: pandas Basics

nlargest

Also written: .nlargest(), nsmallest, .nsmallest()

Sorts and takes the top n rows by a column in one step; `nsmallest` takes the bottom n.

Where the book teaches it

Related terms

sort_values