1. The most Nobel of Prizes

The Nobel Prize is perhaps the world's most well known scientific award. Except for the honor, prestige and substantial prize money the recipient also gets a gold medal showing Alfred Nobel (1833 - 1896) who established the prize. Every year it's given to scientists and scholars in the categories chemistry, literature, physics, physiology or medicine, economics, and peace. The first Nobel Prize was handed out in 1901, and at that time the Prize was very Eurocentric and male-focused, but nowadays it's not biased in any way whatsoever. Surely. Right?

Well, we're going to find out! The Nobel Foundation has made a dataset available of all prize winners from the start of the prize, in 1901, to 2016. Let's load it in and take a look.

# ... YOUR CODE FOR TASK 1 ...
import numpy as np
import pandas as pd
import seaborn as sns

# Reading in the Nobel Prize data
nobel = pd.read_csv('datasets/nobel.csv')

# Taking a look at the first several winners
# ... YOUR CODE FOR TASK 1 ...
nobel.head(6)
year category prize motivation prize_share laureate_id laureate_type full_name birth_date birth_city birth_country sex organization_name organization_city organization_country death_date death_city death_country
0 1901 Chemistry The Nobel Prize in Chemistry 1901 "in recognition of the extraordinary services ... 1/1 160 Individual Jacobus Henricus van 't Hoff 1852-08-30 Rotterdam Netherlands Male Berlin University Berlin Germany 1911-03-01 Berlin Germany
1 1901 Literature The Nobel Prize in Literature 1901 "in special recognition of his poetic composit... 1/1 569 Individual Sully Prudhomme 1839-03-16 Paris France Male NaN NaN NaN 1907-09-07 Châtenay France
2 1901 Medicine The Nobel Prize in Physiology or Medicine 1901 "for his work on serum therapy, especially its... 1/1 293 Individual Emil Adolf von Behring 1854-03-15 Hansdorf (Lawice) Prussia (Poland) Male Marburg University Marburg Germany 1917-03-31 Marburg Germany
3 1901 Peace The Nobel Peace Prize 1901 NaN 1/2 462 Individual Jean Henry Dunant 1828-05-08 Geneva Switzerland Male NaN NaN NaN 1910-10-30 Heiden Switzerland
4 1901 Peace The Nobel Peace Prize 1901 NaN 1/2 463 Individual Frédéric Passy 1822-05-20 Paris France Male NaN NaN NaN 1912-06-12 Paris France
5 1901 Physics The Nobel Prize in Physics 1901 "in recognition of the extraordinary services ... 1/1 1 Individual Wilhelm Conrad Röntgen 1845-03-27 Lennep (Remscheid) Prussia (Germany) Male Munich University Munich Germany 1923-02-10 Munich Germany

2. So, who gets the Nobel Prize?

Just looking at the first couple of prize winners, or Nobel laureates as they are also called, we already see a celebrity: Wilhelm Conrad Röntgen, the guy who discovered X-rays. And actually, we see that all of the winners in 1901 were guys that came from Europe. But that was back in 1901, looking at all winners in the dataset, from 1901 to 2016, which sex and which country is the most commonly represented?

(For country, we will use the birth_country of the winner, as the organization_country is NaN for all shared Nobel Prizes.)

# out between 1901 and 2016
# ... YOUR CODE FOR TASK 2 ...
display(nobel[nobel['prize_share'] != '1/1'])

# Display the number of prizes won by male and female recipients.
# ... YOUR CODE FOR TASK 2 ...
display(nobel['sex'].value_counts())

# Display the number of prizes won by the top 10 nationalities.
# ... YOUR CODE FOR TASK 2 ...
nobel['birth_country'].value_counts().head(10)
year category prize motivation prize_share laureate_id laureate_type full_name birth_date birth_city birth_country sex organization_name organization_city organization_country death_date death_city death_country
3 1901 Peace The Nobel Peace Prize 1901 NaN 1/2 462 Individual Jean Henry Dunant 1828-05-08 Geneva Switzerland Male NaN NaN NaN 1910-10-30 Heiden Switzerland
4 1901 Peace The Nobel Peace Prize 1901 NaN 1/2 463 Individual Frédéric Passy 1822-05-20 Paris France Male NaN NaN NaN 1912-06-12 Paris France
9 1902 Peace The Nobel Peace Prize 1902 NaN 1/2 464 Individual Élie Ducommun 1833-02-19 Geneva Switzerland Male NaN NaN NaN 1906-12-07 Bern Switzerland
10 1902 Peace The Nobel Peace Prize 1902 NaN 1/2 465 Individual Charles Albert Gobat 1843-05-21 Tramelan Switzerland Male NaN NaN NaN 1914-03-16 Bern Switzerland
11 1902 Physics The Nobel Prize in Physics 1902 "in recognition of the extraordinary service t... 1/2 2 Individual Hendrik Antoon Lorentz 1853-07-18 Arnhem Netherlands Male Leiden University Leiden Netherlands 1928-02-04 NaN Netherlands
12 1902 Physics The Nobel Prize in Physics 1902 "in recognition of the extraordinary service t... 1/2 3 Individual Pieter Zeeman 1865-05-25 Zonnemaire Netherlands Male Amsterdam University Amsterdam Netherlands 1943-10-09 Amsterdam Netherlands
17 1903 Physics The Nobel Prize in Physics 1903 "in recognition of the extraordinary services ... 1/2 4 Individual Antoine Henri Becquerel 1852-12-15 Paris France Male École Polytechnique Paris France 1908-08-25 NaN France
18 1903 Physics The Nobel Prize in Physics 1903 "in recognition of the extraordinary services ... 1/4 5 Individual Pierre Curie 1859-05-15 Paris France Male École municipale de physique et de chimie indu... Paris France 1906-04-19 Paris France
19 1903 Physics The Nobel Prize in Physics 1903 "in recognition of the extraordinary services ... 1/4 6 Individual Marie Curie, née Sklodowska 1867-11-07 Warsaw Russian Empire (Poland) Female NaN NaN NaN 1934-07-04 Sallanches France
21 1904 Literature The Nobel Prize in Literature 1904 "in recognition of the fresh originality and t... 1/2 573 Individual Frédéric Mistral 1830-09-08 Maillane France Male NaN NaN NaN 1914-03-25 Maillane France
22 1904 Literature The Nobel Prize in Literature 1904 "in recognition of the numerous and brilliant ... 1/2 574 Individual José Echegaray y Eizaguirre 1832-04-19 Madrid Spain Male NaN NaN NaN 1916-09-04 Madrid Spain
33 1906 Medicine The Nobel Prize in Physiology or Medicine 1906 "in recognition of their work on the structure... 1/2 298 Individual Camillo Golgi 1843-07-07 Corteno Italy Male Pavia University Pavia Italy 1926-01-21 Pavia Italy
34 1906 Medicine The Nobel Prize in Physiology or Medicine 1906 "in recognition of their work on the structure... 1/2 299 Individual Santiago Ramón y Cajal 1852-05-01 Petilla de Aragó Spain Male Madrid University Madrid Spain 1934-10-17 Madrid Spain
40 1907 Peace The Nobel Peace Prize 1907 NaN 1/2 471 Individual Ernesto Teodoro Moneta 1833-09-20 Milan Austrian Empire (Italy) Male NaN NaN NaN 1918-02-10 Milan Italy
41 1907 Peace The Nobel Peace Prize 1907 NaN 1/2 472 Individual Louis Renault 1843-05-21 Autun France Male Sorbonne University Paris France 1918-02-08 Barbizon France
45 1908 Medicine The Nobel Prize in Physiology or Medicine 1908 "in recognition of their work on immunity" 1/2 301 Individual Ilya Ilyich Mechnikov 1845-05-15 Kharkov (Kharkiv) Russian Empire (Ukraine) Male Institut Pasteur Paris France 1916-07-15 Paris France
46 1908 Medicine The Nobel Prize in Physiology or Medicine 1908 "in recognition of their work on immunity" 1/2 302 Individual Paul Ehrlich 1854-03-14 Strehlen (Strzelin) Prussia (Poland) Male Goettingen University Göttingen Germany 1915-08-20 Bad Homburg vor der Höhe Germany
47 1908 Peace The Nobel Peace Prize 1908 NaN 1/2 473 Individual Klas Pontus Arnoldson 1844-10-27 Gothenburg Sweden Male NaN NaN NaN 1916-02-20 Stockholm Sweden
48 1908 Peace The Nobel Peace Prize 1908 NaN 1/2 474 Individual Fredrik Bajer 1837-04-21 Næstved Denmark Male NaN NaN NaN 1922-01-22 Copenhagen Denmark
53 1909 Peace The Nobel Peace Prize 1909 NaN 1/2 475 Individual Auguste Marie François Beernaert 1829-07-26 Ostend Belgium Male NaN NaN NaN 1912-10-06 Lucerne Switzerland
54 1909 Peace The Nobel Peace Prize 1909 NaN 1/2 476 Individual Paul Henri Benjamin Balluet d'Estournelles de ... 1852-11-22 La Flèche France Male NaN NaN NaN 1924-05-15 Paris France
55 1909 Physics The Nobel Prize in Physics 1909 "in recognition of their contributions to the ... 1/2 13 Individual Guglielmo Marconi 1874-04-25 Bologna Italy Male Marconi Wireless Telegraph Co. Ltd. London United Kingdom 1937-07-20 Rome Italy
56 1909 Physics The Nobel Prize in Physics 1909 "in recognition of their contributions to the ... 1/2 14 Individual Karl Ferdinand Braun 1850-06-06 Fulda Hesse-Kassel (Germany) Male Strasbourg University Strasbourg Alsace (then Germany, now France) 1918-04-20 Brooklyn, NY United States of America
65 1911 Peace The Nobel Peace Prize 1911 NaN 1/2 478 Individual Tobias Michael Carel Asser 1838-04-28 Amsterdam Netherlands Male NaN NaN NaN 1913-07-29 the Hague Netherlands
66 1911 Peace The Nobel Peace Prize 1911 NaN 1/2 479 Individual Alfred Hermann Fried 1864-11-11 Vienna Austria Male NaN NaN NaN 1921-05-05 Vienna Austria
68 1912 Chemistry The Nobel Prize in Chemistry 1912 "for the discovery of the so-called Grignard r... 1/2 172 Individual Victor Grignard 1871-05-06 Cherbourg France Male Nancy University Nancy France 1935-12-13 Lyon France
69 1912 Chemistry The Nobel Prize in Chemistry 1912 "for his method of hydrogenating organic compo... 1/2 173 Individual Paul Sabatier 1854-11-05 Carcassonne France Male Toulouse University Toulouse France 1941-08-14 Toulouse France
84 1915 Physics The Nobel Prize in Physics 1915 "for their services in the analysis of crystal... 1/2 20 Individual Sir William Henry Bragg 1862-07-02 Wigton United Kingdom Male University College London United Kingdom 1942-03-12 London United Kingdom
85 1915 Physics The Nobel Prize in Physics 1915 "for their services in the analysis of crystal... 1/2 21 Individual William Lawrence Bragg 1890-03-31 Adelaide Australia Male Victoria University Manchester United Kingdom 1971-07-01 Ipswich United Kingdom
87 1917 Literature The Nobel Prize in Literature 1917 "for his varied and rich poetry, which is insp... 1/2 586 Individual Karl Adolph Gjellerup 1857-06-02 Roholte Denmark Male NaN NaN NaN 1919-10-11 Klotzsche Germany
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
872 2013 Medicine The Nobel Prize in Physiology or Medicine 2013 "for their discoveries of machinery regulating... 1/3 886 Individual Thomas C. Südhof 1955-12-22 Göttingen Germany Male Stanford University Stanford, CA United States of America NaN NaN NaN
874 2013 Physics The Nobel Prize in Physics 2013 "for the theoretical discovery of a mechanism ... 1/2 887 Individual François Englert 1932-11-06 Etterbeek Belgium Male Université Libre de Bruxelles Brussels Belgium NaN NaN NaN
875 2013 Physics The Nobel Prize in Physics 2013 "for the theoretical discovery of a mechanism ... 1/2 888 Individual Peter W. Higgs 1929-05-29 Newcastle upon Tyne United Kingdom Male University of Edinburgh Edinburgh United Kingdom NaN NaN NaN
876 2014 Chemistry The Nobel Prize in Chemistry 2014 "for the development of super-resolved fluores... 1/3 909 Individual Eric Betzig 1960-01-13 Ann Arbor, MI United States of America Male Janelia Research Campus, Howard Hughes Medical... Ashburn, VA United States of America NaN NaN NaN
877 2014 Chemistry The Nobel Prize in Chemistry 2014 "for the development of super-resolved fluores... 1/3 910 Individual Stefan W. Hell 1962-12-23 Arad Romania Male Max Planck Institute for Biophysical Chemistry Göttingen Germany NaN NaN NaN
878 2014 Chemistry The Nobel Prize in Chemistry 2014 "for the development of super-resolved fluores... 1/3 911 Individual William E. Moerner 1953-06-24 Pleasanton, CA United States of America Male Stanford University Stanford, CA United States of America NaN NaN NaN
881 2014 Medicine The Nobel Prize in Physiology or Medicine 2014 "for their discoveries of cells that constitut... 1/2 903 Individual John O'Keefe 1939-11-18 New York, NY United States of America Male University College London United Kingdom NaN NaN NaN
882 2014 Medicine The Nobel Prize in Physiology or Medicine 2014 "for their discoveries of cells that constitut... 1/4 904 Individual May-Britt Moser 1963-01-04 Fosnavåg Norway Female Norwegian University of Science and Technology... Trondheim Norway NaN NaN NaN
883 2014 Medicine The Nobel Prize in Physiology or Medicine 2014 "for their discoveries of cells that constitut... 1/4 905 Individual Edvard I. Moser 1962-04-27 Ålesund Norway Male Norwegian University of Science and Technology... Trondheim Norway NaN NaN NaN
884 2014 Peace The Nobel Peace Prize 2014 "for their struggle against the suppression of... 1/2 913 Individual Kailash Satyarthi 1954-01-11 Vidisha India Male NaN NaN NaN NaN NaN NaN
885 2014 Peace The Nobel Peace Prize 2014 "for their struggle against the suppression of... 1/2 914 Individual Malala Yousafzai 1997-07-12 Mingora Pakistan Female NaN NaN NaN NaN NaN NaN
886 2014 Physics The Nobel Prize in Physics 2014 "for the invention of efficient blue light-emi... 1/3 906 Individual Isamu Akasaki 1929-01-30 Chiran Japan Male Meijo University Nagoya Japan NaN NaN NaN
887 2014 Physics The Nobel Prize in Physics 2014 "for the invention of efficient blue light-emi... 1/3 907 Individual Hiroshi Amano 1960-09-11 Hamamatsu Japan Male Nagoya University Nagoya Japan NaN NaN NaN
888 2014 Physics The Nobel Prize in Physics 2014 "for the invention of efficient blue light-emi... 1/3 908 Individual Shuji Nakamura 1954-05-22 Ikata Japan Male University of California Santa Barbara, CA United States of America NaN NaN NaN
889 2015 Chemistry The Nobel Prize in Chemistry 2015 "for mechanistic studies of DNA repair" 1/3 921 Individual Tomas Lindahl 1938-01-28 Stockholm Sweden Male Francis Crick Institute Hertfordshire United Kingdom NaN NaN NaN
890 2015 Chemistry The Nobel Prize in Chemistry 2015 "for mechanistic studies of DNA repair" 1/3 922 Individual Paul Modrich 1946-06-13 Raton, NM United States of America Male Howard Hughes Medical Institute Durham, NC United States of America NaN NaN NaN
891 2015 Chemistry The Nobel Prize in Chemistry 2015 "for mechanistic studies of DNA repair" 1/3 923 Individual Aziz Sancar 1946-09-08 Savur Turkey Male University of North Carolina Chapel Hill, NC United States of America NaN NaN NaN
894 2015 Medicine The Nobel Prize in Physiology or Medicine 2015 "for their discoveries concerning a novel ther... 1/4 916 Individual William C. Campbell 1930-06-28 Ramelton Ireland Male Drew University Madison, NJ United States of America NaN NaN NaN
895 2015 Medicine The Nobel Prize in Physiology or Medicine 2015 "for their discoveries concerning a novel ther... 1/4 917 Individual Satoshi Ōmura 1935-07-12 Yamanashi Prefecture Japan Male Kitasato University Tokyo Japan NaN NaN NaN
896 2015 Medicine The Nobel Prize in Physiology or Medicine 2015 "for her discoveries concerning a novel therap... 1/2 918 Individual Youyou Tu 1930-12-30 Zhejiang Ningbo China Female China Academy of Traditional Chinese Medicine Beijing China NaN NaN NaN
898 2015 Physics The Nobel Prize in Physics 2015 "for the discovery of neutrino oscillations, w... 1/2 919 Individual Takaaki Kajita 1959-03-09 Higashimatsuyama Japan Male University of Tokyo Kashiwa Japan NaN NaN NaN
899 2015 Physics The Nobel Prize in Physics 2015 "for the discovery of neutrino oscillations, w... 1/2 920 Individual Arthur B. McDonald 1943-08-29 Sydney Canada Male Queen's University Kingston Canada NaN NaN NaN
900 2016 Chemistry The Nobel Prize in Chemistry 2016 "for the design and synthesis of molecular mac... 1/3 931 Individual Jean-Pierre Sauvage 1944-10-21 Paris France Male University of Strasbourg Strasbourg France NaN NaN NaN
901 2016 Chemistry The Nobel Prize in Chemistry 2016 "for the design and synthesis of molecular mac... 1/3 932 Individual Sir J. Fraser Stoddart 1942-05-24 Edinburgh United Kingdom Male Northwestern University Evanston, IL United States of America NaN NaN NaN
902 2016 Chemistry The Nobel Prize in Chemistry 2016 "for the design and synthesis of molecular mac... 1/3 933 Individual Bernard L. Feringa 1951-05-18 Barger-Compascuum Netherlands Male University of Groningen Groningen Netherlands NaN NaN NaN
903 2016 Economics The Sveriges Riksbank Prize in Economic Scienc... "for their contributions to contract theory" 1/2 935 Individual Oliver Hart 1948-10-09 London United Kingdom Male Harvard University Cambridge, MA United States of America NaN NaN NaN
904 2016 Economics The Sveriges Riksbank Prize in Economic Scienc... "for their contributions to contract theory" 1/2 936 Individual Bengt Holmström 1949-04-18 Helsinki Finland Male Massachusetts Institute of Technology (MIT) Cambridge, MA United States of America NaN NaN NaN
908 2016 Physics The Nobel Prize in Physics 2016 "for theoretical discoveries of topological ph... 1/2 928 Individual David J. Thouless 1934-09-21 Bearsden United Kingdom Male University of Washington Seattle, WA United States of America NaN NaN NaN
909 2016 Physics The Nobel Prize in Physics 2016 "for theoretical discoveries of topological ph... 1/4 929 Individual F. Duncan M. Haldane 1951-09-14 London United Kingdom Male Princeton University Princeton, NJ United States of America NaN NaN NaN
910 2016 Physics The Nobel Prize in Physics 2016 "for theoretical discoveries of topological ph... 1/4 930 Individual J. Michael Kosterlitz 1943-06-22 Aberdeen United Kingdom Male Brown University Providence, RI United States of America NaN NaN NaN

567 rows × 18 columns

Male      836
Female     49
Name: sex, dtype: int64
United States of America    259
United Kingdom               85
Germany                      61
France                       51
Sweden                       29
Japan                        24
Canada                       18
Netherlands                  18
Italy                        17
Russia                       17
Name: birth_country, dtype: int64

3. USA dominance

Not so surprising perhaps: the most common Nobel laureate between 1901 and 2016 was a man born in the United States of America. But in 1901 all the winners were European. When did the USA start to dominate the Nobel Prize charts?

nobel['usa_born_winner'] = nobel['birth_country'] == "United States of America"
nobel['decade'] = np.floor((nobel['year'] - 1910)/10 + 1).astype('int64')
prop_usa_winners = nobel.groupby('decade', as_index=False).agg({'usa_born_winner': 'mean'})

# Display the proportions of USA born winners per decade
# ... YOUR CODE FOR TASK 3 ...
display(prop_usa_winners)
decade usa_born_winner
0 0 0.017544
1 1 0.075000
2 2 0.074074
3 3 0.250000
4 4 0.302326
5 5 0.291667
6 6 0.265823
7 7 0.317308
8 8 0.319588
9 9 0.403846
10 10 0.422764
11 11 0.292683

4. USA dominance, visualized

A table is OK, but to see when the USA started to dominate the Nobel charts we need a plot!

sns.set()
# and setting the size of all plots.
import matplotlib.pyplot as plt
plt.rcParams['figure.figsize'] = [11, 7]

# Plotting USA born winners 
ax = sns.lineplot(x='decade', y='usa_born_winner', data=nobel)

# Adding %-formatting to the y-axis
from matplotlib.ticker import PercentFormatter
# ... YOUR CODE FOR TASK 4 ...
ax.yaxis.set_major_formatter(PercentFormatter())

5. What is the gender of a typical Nobel Prize winner?

So the USA became the dominating winner of the Nobel Prize first in the 1930s and had kept the leading position ever since. But one group that was in the lead from the start, and never seems to let go, are men. Maybe it shouldn't come as a shock that there is some imbalance between how many male and female prize winners there are, but how significant is this imbalance? And is it better or worse within specific prize categories like physics, medicine, literature, etc.?

nobel['female_winner'] = nobel['sex'] == "Female"
prop_female_winners = nobel.groupby(['decade', 'category'], as_index=False).agg({'female_winner': 'mean'})

# Plotting USA born winners with % winners on the y-axis
# ... YOUR CODE FOR TASK 5 ...
ax = sns.lineplot(x='decade', y='female_winner', hue='category', data=nobel)

# Adding %-formatting to the y-axis
from matplotlib.ticker import PercentFormatter
# ... YOUR CODE FOR TASK 4 ...
ax.yaxis.set_major_formatter(PercentFormatter())

6. The first woman to win the Nobel Prize

The plot above is a bit messy as the lines are overplotting. But it does show some interesting trends and patterns. Overall the imbalance is pretty large with physics, economics, and chemistry having the largest imbalance. Medicine has a somewhat positive trend, and since the 1990s the literature prize is also now more balanced. The big outlier is the peace prize during the 2010s, but keep in mind that this just covers the years 2010 to 2016.

Given this imbalance, who was the first woman to receive a Nobel Prize? And in what category?

# ... YOUR CODE FOR TASK 5 ...
nobel[nobel['sex'] == "Female"].nsmallest(1, 'year')
year category prize motivation prize_share laureate_id laureate_type full_name birth_date birth_city ... sex organization_name organization_city organization_country death_date death_city death_country usa_born_winner decade female_winner
19 1903 Physics The Nobel Prize in Physics 1903 "in recognition of the extraordinary services ... 1/4 6 Individual Marie Curie, née Sklodowska 1867-11-07 Warsaw ... Female NaN NaN NaN 1934-07-04 Sallanches France False 0 True

1 rows × 21 columns

7. Repeat laureates

For most scientists/writers/activists a Nobel Prize would be the crowning achievement of a long career. But for some people, one is just not enough, and few have gotten it more than once. Who are these lucky few? (Having won no Nobel Prize myself, I'll assume it's just about luck.)

# ... YOUR CODE FOR TASK 5 ...
nobel.groupby('full_name').filter(lambda x: x['year'].count() >= 2)
year category prize motivation prize_share laureate_id laureate_type full_name birth_date birth_city ... sex organization_name organization_city organization_country death_date death_city death_country usa_born_winner decade female_winner
19 1903 Physics The Nobel Prize in Physics 1903 "in recognition of the extraordinary services ... 1/4 6 Individual Marie Curie, née Sklodowska 1867-11-07 Warsaw ... Female NaN NaN NaN 1934-07-04 Sallanches France False 0 True
62 1911 Chemistry The Nobel Prize in Chemistry 1911 "in recognition of her services to the advance... 1/1 6 Individual Marie Curie, née Sklodowska 1867-11-07 Warsaw ... Female Sorbonne University Paris France 1934-07-04 Sallanches France False 1 True
89 1917 Peace The Nobel Peace Prize 1917 NaN 1/1 482 Organization Comité international de la Croix Rouge (Intern... NaN NaN ... NaN NaN NaN NaN NaN NaN NaN False 1 False
215 1944 Peace The Nobel Peace Prize 1944 NaN 1/1 482 Organization Comité international de la Croix Rouge (Intern... NaN NaN ... NaN NaN NaN NaN NaN NaN NaN False 4 False
278 1954 Chemistry The Nobel Prize in Chemistry 1954 "for his research into the nature of the chemi... 1/1 217 Individual Linus Carl Pauling 1901-02-28 Portland, OR ... Male California Institute of Technology (Caltech) Pasadena, CA United States of America 1994-08-19 Big Sur, CA United States of America True 5 False
283 1954 Peace The Nobel Peace Prize 1954 NaN 1/1 515 Organization Office of the United Nations High Commissioner... NaN NaN ... NaN NaN NaN NaN NaN NaN NaN False 5 False
298 1956 Physics The Nobel Prize in Physics 1956 "for their researches on semiconductors and th... 1/3 66 Individual John Bardeen 1908-05-23 Madison, WI ... Male University of Illinois Urbana, IL United States of America 1991-01-30 Boston, MA United States of America True 5 False
306 1958 Chemistry The Nobel Prize in Chemistry 1958 "for his work on the structure of proteins, es... 1/1 222 Individual Frederick Sanger 1918-08-13 Rendcombe ... Male University of Cambridge Cambridge United Kingdom 2013-11-19 Cambridge United Kingdom False 5 False
340 1962 Peace The Nobel Peace Prize 1962 NaN 1/1 217 Individual Linus Carl Pauling 1901-02-28 Portland, OR ... Male California Institute of Technology (Caltech) Pasadena, CA United States of America 1994-08-19 Big Sur, CA United States of America True 6 False
348 1963 Peace The Nobel Peace Prize 1963 NaN 1/2 482 Organization Comité international de la Croix Rouge (Intern... NaN NaN ... NaN NaN NaN NaN NaN NaN NaN False 6 False
424 1972 Physics The Nobel Prize in Physics 1972 "for their jointly developed theory of superco... 1/3 66 Individual John Bardeen 1908-05-23 Madison, WI ... Male University of Illinois Urbana, IL United States of America 1991-01-30 Boston, MA United States of America True 7 False
505 1980 Chemistry The Nobel Prize in Chemistry 1980 "for their contributions concerning the determ... 1/4 222 Individual Frederick Sanger 1918-08-13 Rendcombe ... Male MRC Laboratory of Molecular Biology Cambridge United Kingdom 2013-11-19 Cambridge United Kingdom False 8 False
523 1981 Peace The Nobel Peace Prize 1981 NaN 1/1 515 Organization Office of the United Nations High Commissioner... NaN NaN ... NaN NaN NaN NaN NaN NaN NaN False 8 False

13 rows × 21 columns

8. How old are you when you get the prize?

The list of repeat winners contains some illustrious names! We again meet Marie Curie, who got the prize in physics for discovering radiation and in chemistry for isolating radium and polonium. John Bardeen got it twice in physics for transistors and superconductivity, Frederick Sanger got it twice in chemistry, and Linus Carl Pauling got it first in chemistry and later in peace for his work in promoting nuclear disarmament. We also learn that organizations also get the prize as both the Red Cross and the UNHCR have gotten it twice.

But how old are you generally when you get the prize?

nobel['birth_date'] =  pd.to_datetime(nobel['birth_date'], format='%Y-%m-%d')

# Calculating the age of Nobel Prize winners
nobel['age'] = nobel['year'] - nobel['birth_date'].dt.year

# Plotting the age of Nobel Prize winners
sns.lmplot(x='year', y='age', data=nobel, lowess=True, aspect=2, line_kws={'color': 'black'})
<seaborn.axisgrid.FacetGrid at 0x7f181c5ffe10>

9. Age differences between prize categories

The plot above shows us a lot! We see that people use to be around 55 when they received the price, but nowadays the average is closer to 65. But there is a large spread in the laureates' ages, and while most are 50+, some are very young.

We also see that the density of points is much high nowadays than in the early 1900s -- nowadays many more of the prizes are shared, and so there are many more winners. We also see that there was a disruption in awarded prizes around the Second World War (1939 - 1945).

Let's look at age trends within different prize categories.

# ... YOUR CODE FOR TASK 9 ...
sns.lmplot(x='year', y='age', data=nobel, row='category')
<seaborn.axisgrid.FacetGrid at 0x7f181c5edfd0>

10. Oldest and youngest winners

More plots with lots of exciting stuff going on! We see that both winners of the chemistry, medicine, and physics prize have gotten older over time. The trend is strongest for physics: the average age used to be below 50, and now it's almost 70. Literature and economics are more stable. We also see that economics is a newer category. But peace shows an opposite trend where winners are getting younger!

In the peace category we also a winner around 2010 that seems exceptionally young. This begs the questions, who are the oldest and youngest people ever to have won a Nobel Prize?

# ... YOUR CODE FOR TASK 10 ...
display(nobel.nlargest(1, 'age'))

# The youngest winner of a Nobel Prize as of 2016
# ... YOUR CODE FOR TASK 10 ...
display(nobel.nsmallest(1, 'age'))
year category prize motivation prize_share laureate_id laureate_type full_name birth_date birth_city ... organization_name organization_city organization_country death_date death_city death_country usa_born_winner decade female_winner age
793 2007 Economics The Sveriges Riksbank Prize in Economic Scienc... "for having laid the foundations of mechanism ... 1/3 820 Individual Leonid Hurwicz 1917-08-21 Moscow ... University of Minnesota Minneapolis, MN United States of America 2008-06-24 Minneapolis, MN United States of America False 10 False 90.0

1 rows × 22 columns

year category prize motivation prize_share laureate_id laureate_type full_name birth_date birth_city ... organization_name organization_city organization_country death_date death_city death_country usa_born_winner decade female_winner age
885 2014 Peace The Nobel Peace Prize 2014 "for their struggle against the suppression of... 1/2 914 Individual Malala Yousafzai 1997-07-12 Mingora ... NaN NaN NaN NaN NaN NaN False 11 True 17.0

1 rows × 22 columns

11. You get a prize!

Hey! You get a prize for making it to the very end of this notebook! It might not be a Nobel Prize, but I made it myself in paint so it should count for something. But don't despair, Leonid Hurwicz was 90 years old when he got his prize, so it might not be too late for you. Who knows.

Before you leave, what was again the name of the youngest winner ever who in 2014 got the prize for "[her] struggle against the suppression of children and young people and for the right of all children to education"?

youngest_winner = 'Malala Yousafzai'