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!
# Importing csv into a DataFrame and describing the Dataframe
import pandas as pd

nobel_df = pd.read_csv("data/nobel.csv")
nobel_df.info()

print(nobel_df[nobel_df['sex'].isnull()][['sex', 'full_name']])

What is the most commonly awarded gender and birth country?

Store your answers as string variables top_gender and top_country.


2 hidden cells

Which decade had the highest ratio of US-born Nobel Prize winners to total winners in all categories?

Store this as an integer called max_decade_usa.


2 hidden cells

Which decade and Nobel Prize category combination had the highest proportion of female laureates?

Store this as a dictionary called max_female_dict where the decade is the key and the category is the value. There should only be one key:value pair.


1 hidden cell

Who was the first woman to receive a Nobel Prize, and in what category?

Save your string answers as first_woman_name and first_woman_category.

laureats_women = nobel_df[nobel_df['sex'] == 'Female'][['year','full_name', 'category']].sort_values('year')

first_woman_name = laureats_women.iloc[0]['full_name']
first_woman_category = laureats_women.iloc[0]['category']
print(first_woman_name)
print(first_woman_category)

1 hidden cell

Which individuals or organizations have won more than one Nobel Prize throughout the years?

Store the full names in a list named repeat_list.

repeated_series = nobel_df['full_name'].value_counts()

print(type(repeated_series))


repeated_series = repeated_series[repeated_series > 1]
repeated_list = list(repeated_series.index)
print(repeated_list)
print(type(repeated))
# Using original df, find duplicate "full_name"

counts = nobel_df["full_name"].value_counts()
repeat_list = [counts.index[i] for i in range(len(counts)) if counts[i] > 1]

print(repeat_list)