0
Q:

nlargest

# importing pandas module  
import pandas as pd  
    
# making data frame  
df = pd.read_csv("nba.csv")  
  
# five largest values in column age 
df.nlargest(5, ['Age']) 
-1
>>> df.nlargest(3, 'population')
        population      GDP alpha-2
France    65000000  2583560      FR
Italy     59000000  1937894      IT
Malta       434000    12011      MT
1

New to Communities?

Join the community