Skip to content
Project: Visualizing the History of Nobel Prize Winners

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!
nobel = pd.read_csv("data/nobel.csv")
nobel.head()
# What is the most commonly awarded gender?
top_gender = nobel["sex"].value_counts().index[0]

# What is the most commonly awarded country?
top_country = nobel["birth_country"].value_counts().index[0]

print(f"Most common sex: {top_gender} | Most common country: {top_country}")
# What decade had the highest proportion of US-born winners?
nobel["decade"] = nobel["year"].apply(lambda x: (x // 10) * 10)
usa_wins = nobel.query("birth_country == 'United States of America'")
usa_wins["decade"].value_counts()[:1]
max_decade_usa = 2000
# Calculating the proportion of female laureates per decade
nobel['female_winner'] = nobel['sex'] == 'Female'
prop_female_winners = nobel.groupby(['decade', 'category'], as_index=False)['female_winner'].mean()

# Find the decade and category with the highest proportion of female laureates
max_female_decade_category = prop_female_winners[prop_female_winners['female_winner'] == prop_female_winners['female_winner'].max()][['decade', 'category']]

# Create a dictionary with the decade and category pair
max_female_dict = {max_female_decade_category['decade'].values[0]: max_female_decade_category['category'].values[0]}
# Who was the first waman to receive a N0bel Prize and in what category?
nobel.loc[(nobel["year"] == 1903) & (nobel["sex"] == "Female")]
first_woman_name = "Marie Curie, née Sklodowska"
first_woman_category = "Physics"
# Which individuals or organizations have won multiple Nobel Prizes throughout the years? 
winners = nobel["full_name"].value_counts()
repeat_list = list(winners[winners > 1].index)
repeat_list