Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Display the number of prizes won by male and female recipients.
- # ... YOUR CODE FOR TASK 2 ...
- gender = nobel.groupby('sex').year.count()
- print(gender)
- # Display the number of prizes won by the top 10 nationalities.
- # ... YOUR CODE FOR TASK 2 ...
- countries = nobel.groupby('birth_country').year.count()
- top10 = countries.sort_values(ascending=False)
- print(top10[:10])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement