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

# Loading and inspecting data
nobel = pd.read_csv("data/nobel.csv")
print(nobel.head())

# Identifying top gender
print(nobel["sex"].value_counts())
top_gender = 'Male'

# Identifying top country
print(nobel['birth_country'].value_counts().head())
top_country = 'United States of America'

# Identifing which decade had most US-born nobel price winners
nobel["US-born"] = nobel["birth_country"] == "United States of America"
nobel["Decade"] = (np.floor(nobel["year"] / 10) * 10).astype(int)
print(nobel.groupby("Decade")["US-born"].mean().sort_values(ascending=False).head())
max_decade_usa = 2000

# Identifing decade and category with highest percentage of female nobekl price winners
nobel["female_winner"] = nobel["sex"] == "Female"
print(nobel.groupby(["Decade", "category"])["female_winner"].mean().sort_values(ascending=False).head())
max_female_dict = {2020: "Literature"}

# Identifying first female nobel price winner and category
nobel[nobel["female_winner"] == True]
first_woman_name = 'Marie Curie, née Sklodowska'
first_woman_category = 'Physics'

# A list of people who won more than 1 nobel price
counts = nobel["full_name"].value_counts()
repeats = counts[counts >= 2].index
repeat_list = list(repeats)
print(repeat_list)