1# top n rows ordered by columns values
2gapminder_2007.nlargest(10, 'var1')
3
4# top n rows ordered by multiple column values
5gapminder_2007.nlargest(10, ['var1','var2'])
6
7# smallest rows ordered column values
8gapminder_2007.nsmallest(3, 'var1')