What are the "nlargest" and "nsmallest" methods in Pandas? (And should you use them?)

Опубликовано: 06 Май 2024
на канале: Python and Pandas with Reuven Lerner
419
22

Want to find the largest or smallest values in a Pandas series or data frame? The nlargest and nsmallest methods might be a good fit. In this video, I show you how they work, and then compare them with other ways to get the largest and smallest values in your data.

You can get the Jupyter notebook from this video, and all of my videos, at https://github.com/reuven/youTube-not... . And don't forget to check out https://LernerPython.com for all of my courses.

[And sorry about the audio distortion!]