Skip to content

The Nobel Prize has been among the most prestigious international awards since 1901. Each year, awards are bestowed in chemistry, literature, physics, physiology or medicine, economics, and peace. In addition to the honor, prestige, and substantial prize money, the recipient also gets a gold medal with an image of Alfred Nobel (1833 - 1896), who established the prize.

The Nobel Foundation has made a dataset available of all prize winners from the outset of the awards from 1901 to 2023. The dataset used in this project is from the Nobel Prize API and is available in the nobel.csv file in the data folder.

In this project, you'll get a chance to explore and answer several questions related to this prizewinning data. And we encourage you then to explore further questions that you're interested in!

# Loading in required libraries
import pandas as pd
import seaborn as sns
import numpy as np

# Start coding here!
data = pd.read_csv('data/nobel.csv')

gender_count = data["sex"].value_counts()
top_gender = gender_count.idxmax()

print("Most commonly awarded gender:", top_gender)

country_count = data["birth_country"].value_counts()
top_country = country_count.idxmax()
print("Most commonly awarded birth country:",top_country)

data["decade"] = (data["year"] // 10) * 10

count_total_winners = data["decade"].value_counts()

count_us_born_winners = data[data["birth_country"] == "United States of America"]["decade"].value_counts()

ratio_per_decade = count_us_born_winners / count_total_winners

max_decade_usa = ratio_per_decade.idxmax()

print("Decade with highest US-born Nobel Prize ratio:", max_decade_usa)

female_winners = data[data["sex"] == "Female"]
total_winners = data.groupby(["decade", "category"]).size()
female_winners_count = female_winners.groupby(["decade","category"]).size()

female_proportion = (female_winners_count / total_winners).fillna(0)
max_decade_category = female_proportion.idxmax()
max_female_dict = {max_decade_category[0]: max_decade_category[1]}

print("Decade and Nobel Prize category combination with the highest proportion of female laureates:", max_female_dict)

first_female = female_winners.sort_values("year").iloc[0]
first_woman_name = first_female["full_name"]
first_woman_category = first_female["category"]

print("The first woman to receive a Nobel Prize was:", first_woman_name, "and it was on the category of", first_woman_category,)

winner_counts = data["full_name"].value_counts()
multiple_won = winner_counts[winner_counts > 1].index.tolist()
repeat_list = multiple_won

print("Individuals or organizations that have won more than one Nobel Prize throughout the years:", repeat_list)