I am writing a python script to return the top 5 rows of a dataframe using the pandas nlargest() method. In its documentation seen here , it states that it can
nlargest()