Grab the rows with the N smallest values in a column.
Below are the 13 Bamboo Weekly exercises that use nsmallest on real-world data — try each one, then study the worked solution.
- Bamboo Weekly #169: Press freedom
- Bamboo Weekly #163: Daylight saving time
- Bamboo Weekly #157: Government corruption
- Bamboo Weekly #151: PyPI in 2025
- Bamboo Weekly #148: US Manufacturing
- Bamboo Weekly #139: Chinese exports
- Bamboo Weekly #135: Airline seats
- Bamboo Weekly #129: Tom Lehrer
- Bamboo Weekly #127: European comparisons
- Bamboo Weekly #122: Economic growth
- Bamboo Weekly #117: Electricity
- Bamboo Weekly #62: Economic report card
- Bamboo Weekly #56: Rent increases
Part of the Pandas Methods Index. See also practice by skill.