Extra Statistics
Lastly, let's derive some key statistics pertaining to Nobel laureates.
Завдання
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.
Рішення
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
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 6
AVAILABLE TO ULTIMATE ONLY