Sun Aug 22 2021 17:33:26 GMT+0000 (Coordinated Universal Time)
Saved by @zeroxenator
import pandas as pd df = pd.DataFrame({ "Student": ['John', 'Jennifer', 'Jeff', 'Joshua', 'Jack', 'Jeremy', 'Jason'], "Score": [95, 100, 94, 99, 88, 92, 89] }) df.nlargest(3, "Score") df.nsmallest(3, "Score")
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments