📅  最后修改于: 2022-03-11 14:45:05.309000             🧑  作者: Mango
# top n rows ordered by columns values
gapminder_2007.nlargest(10, 'var1')
# top n rows ordered by multiple column values
gapminder_2007.nlargest(10, ['var1','var2'])
# smallest rows ordered column values
gapminder_2007.nsmallest(3, 'var1')