Extra Statistics
Lastly, let's derive some key statistics pertaining to Nobel laureates.
Tehtävä
Swipe to start coding
-
Identify the earliest female Nobel Prize recipient based on the
"awardYear"
. -
Identify the earliest male Nobel Prize laureate based on the
"awardYear"
. -
Determine the laureate awarded the largest Nobel Prize amount.
Ratkaisu
print('The earliest female Nobel Prize recipient:')
display(nobel[nobel["gender"] == "female"].nsmallest(1, columns="awardYear"))
print('The earliest male Nobel Prize recipient:')
display(nobel[nobel["gender"] == "male"].nsmallest(1, columns="awardYear"))
print('Laureate awarded the largest Nobel Prize amount:')
display(nobel.iloc[nobel[["prizeAmount"]].idxmax()])
Mark tasks as Completed
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 6
AVAILABLE TO ULTIMATE ONLY