samyakbayar commited on
Commit
84c2c3a
·
verified ·
1 Parent(s): 03e13ed

Upload nobel-prize-laureates dataset files

Browse files
Files changed (8) hide show
  1. KAGGLE.md +148 -0
  2. README.md +157 -0
  3. about.md +25 -0
  4. data_dictionary.csv +47 -0
  5. dataset-metadata.json +266 -0
  6. kernel-metadata.json +14 -0
  7. nobel_laureates.csv +0 -0
  8. notebook.ipynb +208 -0
KAGGLE.md ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Nobel Prize Laureates 1901-2026
2
+
3
+ **Subtitle:** Every Nobel Prize with laureate demographics, affiliations and prize citations
4
+
5
+ **Tags:** `history`, `science`, `education`, `research`, `society`, `awards`, `nobel`, `gender`, `tabular`, `social-science`
6
+
7
+ **Dataset File:** `nobel_laureates.csv` (1,085 rows, 46 columns, 488.0 KB)
8
+
9
+ ---
10
+
11
+ ## 📖 Description
12
+
13
+ ### Every Nobel Prize ever awarded, one row per laureate
14
+
15
+ Straight from the Nobel Foundation's open API: **1,085 rows** covering the 126 award years from
16
+ 1901 to 2026, describing **1,005 individual laureates** and **31 organisational
17
+ laureates** through **46 parameters**.
18
+
19
+ Each row is one laureate receiving one prize (a shared prize therefore produces several rows sharing the
20
+ same `prize_year`/`category`), and includes:
21
+ - **The prize** — year, category and full official name, announcement date, prize amount in SEK, the
22
+ inflation-adjusted amount and how many laureates shared it.
23
+ - **The laureate** — API id, person/organisation type, known name, full name, given and family name,
24
+ gender, organisation name and the fraction of the prize received.
25
+ - **The citation** — the motivation text explaining the award.
26
+ - **Life and place** — birth date, city, country at the time and present-day country, continent of birth,
27
+ death date and city, all affiliations with their cities and countries.
28
+ - **Derived measures** — age at award, birth and death year, lifespan, posthumous and shared-prize flags,
29
+ share of the prize in percent, prize value per laureate, value of the laureate's own portion (raw and
30
+ inflation-adjusted), decade, century, category group and years since the award.
31
+
32
+ Years in which a prize was not awarded appear as a single row with `laureate_type = none`, so the file can
33
+ be used directly for time-series work without silently dropping years.
34
+
35
+ ## 🧾 Columns (46)
36
+
37
+ `prize_year`, `category`, `category_full_name`, `date_awarded`, `prize_amount_sek`, `prize_amount_adjusted_sek`, `n_laureates`, `laureate_id`, `laureate_type`, `known_name`, `full_name`, `given_name`, `family_name`, `gender`, `org_name`, `portion`, `motivation`, `birth_date`, `birth_city`, `birth_country`, `birth_country_now`, `birth_continent`, `death_date`, `death_city`, `death_country_now`, `affiliation_count`, `first_affiliation`, `first_affiliation_city`, `first_affiliation_country`, `affiliations_all`, `age_at_award`, `birth_year`, `death_year`, `lifespan_years`, `is_posthumous`, `is_shared`, `share_of_prize_pct`, `prize_amount_per_laureate_sek`, `value_of_portion_sek`, `value_of_portion_adjusted_sek`, `decade`, `category_group`, `birth_decade`, `is_organisation`, `century`, `years_since_award`
38
+
39
+ ## 💡 Ideas for using this data
40
+
41
+ 1. **Laureate demographics** — gender, birth continent and birth decade over 125 years of prizes.
42
+ 2. **Age at award** — distribution by category; physicists tend to be younger than literature laureates.
43
+ 3. **Institutional dominance** — which affiliations and countries produce the most laureates?
44
+ 4. **Shared prizes** — how the fraction of shared awards and the number of co-laureates evolved.
45
+ 5. **Prize value** — real (inflation-adjusted) prize amount per laureate over time.
46
+ 6. **Posthumous awards** — the rare cases and the rules that followed them.
47
+ 7. **Text mining** — the `motivation` field is clean prose; extract topics or build a citation-keyword trend.
48
+ 8. **Geography of science** — map birthplaces and affiliations; measure the rise of the United States and Asia.
49
+ 9. **Family names** — surname diversity among laureates, or name-origin inference.
50
+
51
+ ## 📁 Files
52
+
53
+ | File | What it is |
54
+ |---|---|
55
+ | `nobel_laureates.csv` | 1,085 laureate-prize rows x 46 parameters. |
56
+ | `data_dictionary.csv` | Column / type / description for every field. |
57
+ | `notebook.ipynb` | Starter notebook: demographics, age at award, prize value. |
58
+ | `dataset-metadata.json` | Kaggle API metadata. |
59
+ | `about.md` | Plain-text About block. |
60
+
61
+ ## 🏷️ Tags
62
+
63
+ `history`, `science`, `education`, `research`, `society`, `awards`, `nobel`, `gender`, `tabular`, `social-science`
64
+
65
+ ## 🔗 Provenance
66
+
67
+ - **Source:** **Nobel Prize open data API v2.1**, `https://api.nobelprize.org/2.1/nobelPrizes`,
68
+ published by the Nobel Foundation (nobelprize.org).
69
+ - **Query:** all prizes, sorted ascending by year, `limit=1000` (covers the entire award history).
70
+ - **Transformation:** prize records exploded to one row per laureate, nested birth/death/affiliation objects
71
+ flattened, and 16 derived columns added.
72
+ - **Snapshot date:** 20 November 2026.
73
+
74
+ ## 🔄 Update frequency
75
+
76
+ **Annual.** New laureates are announced each October; re-run `scripts/16_nobel.py` after the announcement to extend the file.
77
+
78
+ ## ⚠️ Caveats
79
+
80
+ - Country names for birthplaces are given both as historical (`birth_country`) and present-day (`birth_country_now`) entities; use the latter for maps.
81
+ - Some early laureates have no recorded birth date, so `age_at_award` is empty for them.
82
+ - Organisational laureates (mostly Peace) have no gender, birth data or age.
83
+ - `prize_amount_sek` changes meaning over time — compare using `prize_amount_adjusted_sek`.
84
+ - Shared prizes produce multiple rows with the same `prize_year` and `category`; count prizes with `nunique` on year+category, not with `len`.
85
+ - The Nobel Foundation records gender as a binary field, which limits analysis to that categorisation.
86
+
87
+ ## 📜 Licence
88
+
89
+ The Nobel Prize API is published by the Nobel Foundation for public use (CC0-style open data). Nobel Prize, Nobel Laureate and the Nobel medal are registered trademarks of the Nobel Foundation; this dataset is an independent compilation and is not endorsed by it.
90
+
91
+ ### 📋 Column Definitions & File Header
92
+
93
+ | # | Column Name | Data Type | Description |
94
+ |---|---|---|---|
95
+ | 1 | `prize_year` | `number` | Year the prize was awarded. |
96
+ | 2 | `category` | `string` | Nobel category (Physics, Chemistry, Medicine, Literature, Peace, Economic Sciences). |
97
+ | 3 | `category_full_name` | `string` | Full official name of the prize. |
98
+ | 4 | `date_awarded` | `date` | Date the prize was announced/awarded. |
99
+ | 5 | `prize_amount_sek` | `number` | Prize amount in Swedish kronor at the time of the award. |
100
+ | 6 | `prize_amount_adjusted_sek` | `number` | Prize amount adjusted to a common price level (SEK). |
101
+ | 7 | `n_laureates` | `number` | Number of laureates sharing this prize. |
102
+ | 8 | `laureate_id` | `number` | Nobel Prize API laureate identifier. |
103
+ | 9 | `laureate_type` | `string` | person, organisation, or none when the prize was not awarded. |
104
+ | 10 | `known_name` | `string` | Name the laureate is generally known by. |
105
+ | 11 | `full_name` | `string` | Full name as recorded by the Nobel Foundation. |
106
+ | 12 | `given_name` | `string` | Given name(s). |
107
+ | 13 | `family_name` | `string` | Family name. |
108
+ | 14 | `gender` | `string` | male or female (as recorded); empty for organisations. |
109
+ | 15 | `org_name` | `string` | Organisation name, for prizes awarded to institutions. |
110
+ | 16 | `portion` | `number` | Fraction of the prize received (1 = the whole prize). |
111
+ | 17 | `motivation` | `string` | Citation explaining why the prize was awarded. |
112
+ | 18 | `birth_date` | `date` | Laureate date of birth. |
113
+ | 19 | `birth_city` | `string` | City of birth. |
114
+ | 20 | `birth_country` | `string` | Country of birth (as it was at the time). |
115
+ | 21 | `birth_country_now` | `string` | Present-day country of the birthplace. |
116
+ | 22 | `birth_continent` | `string` | Continent of the birthplace (supplied by the Nobel API). |
117
+ | 23 | `death_date` | `date` | Date of death, where applicable. |
118
+ | 24 | `death_city` | `string` | City of death. |
119
+ | 25 | `death_country_now` | `string` | Present-day country of death. |
120
+ | 26 | `affiliation_count` | `number` | Number of affiliations recorded at the time of the award. |
121
+ | 27 | `first_affiliation` | `string` | First affiliation listed. |
122
+ | 28 | `first_affiliation_city` | `string` | City of that affiliation. |
123
+ | 29 | `first_affiliation_country` | `string` | Country of that affiliation. |
124
+ | 30 | `affiliations_all` | `string` | Semicolon-separated list of all affiliations. |
125
+ | 31 | `age_at_award` | `number` | Laureate age in years at the award date (persons only). |
126
+ | 32 | `birth_year` | `number` | Year of birth. |
127
+ | 33 | `death_year` | `number` | Year of death. |
128
+ | 34 | `lifespan_years` | `number` | Age at death, or age at snapshot for living laureates. |
129
+ | 35 | `is_posthumous` | `boolean` | true when the prize was awarded after the laureate's death. |
130
+ | 36 | `is_shared` | `boolean` | true when the prize was split between two or more laureates. |
131
+ | 37 | `share_of_prize_pct` | `number` | Portion of the prize received, in percent. |
132
+ | 38 | `prize_amount_per_laureate_sek` | `number` | Prize amount divided by the number of laureates. |
133
+ | 39 | `value_of_portion_sek` | `number` | Prize amount multiplied by the laureate's portion. |
134
+ | 40 | `value_of_portion_adjusted_sek` | `number` | Inflation-adjusted value of that portion. |
135
+ | 41 | `decade` | `string` | Award decade. |
136
+ | 42 | `category_group` | `string` | Coarse category grouping used for comparisons. |
137
+ | 43 | `birth_decade` | `string` | Decade of birth. |
138
+ | 44 | `is_organisation` | `boolean` | true when the laureate is an institution rather than a person. |
139
+ | 45 | `century` | `string` | Century of the award. |
140
+ | 46 | `years_since_award` | `number` | Years between the award and the snapshot date. |
141
+
142
+
143
+
144
+ ---
145
+
146
+ ## 🌟 Support & Community
147
+ If you find this dataset valuable for your research, portfolio, or machine learning projects, **please give it an upvote (👍) on Kaggle!**
148
+ Feedback, questions, and notebook submissions are warmly welcomed in the Discussions tab.
README.md ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ task_categories:
4
+ - tabular
5
+ tags:
6
+ - tabular
7
+ pretty_name: Nobel Prize Laureates 1901-2026
8
+ ---
9
+
10
+ # Nobel Prize Laureates 1901-2026
11
+
12
+ **Subtitle:** Every Nobel Prize with laureate demographics, affiliations and prize citations
13
+
14
+ **Tags:** `history`, `science`, `education`, `research`, `society`, `awards`, `nobel`, `gender`, `tabular`, `social-science`
15
+
16
+ **Dataset File:** `nobel_laureates.csv` (1,085 rows, 46 columns, 488.0 KB)
17
+
18
+ ---
19
+
20
+ ## 📖 Description
21
+
22
+ ### Every Nobel Prize ever awarded, one row per laureate
23
+
24
+ Straight from the Nobel Foundation's open API: **1,085 rows** covering the 126 award years from
25
+ 1901 to 2026, describing **1,005 individual laureates** and **31 organisational
26
+ laureates** through **46 parameters**.
27
+
28
+ Each row is one laureate receiving one prize (a shared prize therefore produces several rows sharing the
29
+ same `prize_year`/`category`), and includes:
30
+ - **The prize** — year, category and full official name, announcement date, prize amount in SEK, the
31
+ inflation-adjusted amount and how many laureates shared it.
32
+ - **The laureate** — API id, person/organisation type, known name, full name, given and family name,
33
+ gender, organisation name and the fraction of the prize received.
34
+ - **The citation** — the motivation text explaining the award.
35
+ - **Life and place** — birth date, city, country at the time and present-day country, continent of birth,
36
+ death date and city, all affiliations with their cities and countries.
37
+ - **Derived measures** — age at award, birth and death year, lifespan, posthumous and shared-prize flags,
38
+ share of the prize in percent, prize value per laureate, value of the laureate's own portion (raw and
39
+ inflation-adjusted), decade, century, category group and years since the award.
40
+
41
+ Years in which a prize was not awarded appear as a single row with `laureate_type = none`, so the file can
42
+ be used directly for time-series work without silently dropping years.
43
+
44
+ ## 🧾 Columns (46)
45
+
46
+ `prize_year`, `category`, `category_full_name`, `date_awarded`, `prize_amount_sek`, `prize_amount_adjusted_sek`, `n_laureates`, `laureate_id`, `laureate_type`, `known_name`, `full_name`, `given_name`, `family_name`, `gender`, `org_name`, `portion`, `motivation`, `birth_date`, `birth_city`, `birth_country`, `birth_country_now`, `birth_continent`, `death_date`, `death_city`, `death_country_now`, `affiliation_count`, `first_affiliation`, `first_affiliation_city`, `first_affiliation_country`, `affiliations_all`, `age_at_award`, `birth_year`, `death_year`, `lifespan_years`, `is_posthumous`, `is_shared`, `share_of_prize_pct`, `prize_amount_per_laureate_sek`, `value_of_portion_sek`, `value_of_portion_adjusted_sek`, `decade`, `category_group`, `birth_decade`, `is_organisation`, `century`, `years_since_award`
47
+
48
+ ## 💡 Ideas for using this data
49
+
50
+ 1. **Laureate demographics** — gender, birth continent and birth decade over 125 years of prizes.
51
+ 2. **Age at award** — distribution by category; physicists tend to be younger than literature laureates.
52
+ 3. **Institutional dominance** — which affiliations and countries produce the most laureates?
53
+ 4. **Shared prizes** — how the fraction of shared awards and the number of co-laureates evolved.
54
+ 5. **Prize value** — real (inflation-adjusted) prize amount per laureate over time.
55
+ 6. **Posthumous awards** — the rare cases and the rules that followed them.
56
+ 7. **Text mining** — the `motivation` field is clean prose; extract topics or build a citation-keyword trend.
57
+ 8. **Geography of science** — map birthplaces and affiliations; measure the rise of the United States and Asia.
58
+ 9. **Family names** — surname diversity among laureates, or name-origin inference.
59
+
60
+ ## 📁 Files
61
+
62
+ | File | What it is |
63
+ |---|---|
64
+ | `nobel_laureates.csv` | 1,085 laureate-prize rows x 46 parameters. |
65
+ | `data_dictionary.csv` | Column / type / description for every field. |
66
+ | `notebook.ipynb` | Starter notebook: demographics, age at award, prize value. |
67
+ | `dataset-metadata.json` | Kaggle API metadata. |
68
+ | `about.md` | Plain-text About block. |
69
+
70
+ ## 🏷️ Tags
71
+
72
+ `history`, `science`, `education`, `research`, `society`, `awards`, `nobel`, `gender`, `tabular`, `social-science`
73
+
74
+ ## 🔗 Provenance
75
+
76
+ - **Source:** **Nobel Prize open data API v2.1**, `https://api.nobelprize.org/2.1/nobelPrizes`,
77
+ published by the Nobel Foundation (nobelprize.org).
78
+ - **Query:** all prizes, sorted ascending by year, `limit=1000` (covers the entire award history).
79
+ - **Transformation:** prize records exploded to one row per laureate, nested birth/death/affiliation objects
80
+ flattened, and 16 derived columns added.
81
+ - **Snapshot date:** 20 November 2026.
82
+
83
+ ## 🔄 Update frequency
84
+
85
+ **Annual.** New laureates are announced each October; re-run `scripts/16_nobel.py` after the announcement to extend the file.
86
+
87
+ ## ⚠️ Caveats
88
+
89
+ - Country names for birthplaces are given both as historical (`birth_country`) and present-day (`birth_country_now`) entities; use the latter for maps.
90
+ - Some early laureates have no recorded birth date, so `age_at_award` is empty for them.
91
+ - Organisational laureates (mostly Peace) have no gender, birth data or age.
92
+ - `prize_amount_sek` changes meaning over time — compare using `prize_amount_adjusted_sek`.
93
+ - Shared prizes produce multiple rows with the same `prize_year` and `category`; count prizes with `nunique` on year+category, not with `len`.
94
+ - The Nobel Foundation records gender as a binary field, which limits analysis to that categorisation.
95
+
96
+ ## 📜 Licence
97
+
98
+ The Nobel Prize API is published by the Nobel Foundation for public use (CC0-style open data). Nobel Prize, Nobel Laureate and the Nobel medal are registered trademarks of the Nobel Foundation; this dataset is an independent compilation and is not endorsed by it.
99
+
100
+ ### 📋 Column Definitions & File Header
101
+
102
+ | # | Column Name | Data Type | Description |
103
+ |---|---|---|---|
104
+ | 1 | `prize_year` | `number` | Year the prize was awarded. |
105
+ | 2 | `category` | `string` | Nobel category (Physics, Chemistry, Medicine, Literature, Peace, Economic Sciences). |
106
+ | 3 | `category_full_name` | `string` | Full official name of the prize. |
107
+ | 4 | `date_awarded` | `date` | Date the prize was announced/awarded. |
108
+ | 5 | `prize_amount_sek` | `number` | Prize amount in Swedish kronor at the time of the award. |
109
+ | 6 | `prize_amount_adjusted_sek` | `number` | Prize amount adjusted to a common price level (SEK). |
110
+ | 7 | `n_laureates` | `number` | Number of laureates sharing this prize. |
111
+ | 8 | `laureate_id` | `number` | Nobel Prize API laureate identifier. |
112
+ | 9 | `laureate_type` | `string` | person, organisation, or none when the prize was not awarded. |
113
+ | 10 | `known_name` | `string` | Name the laureate is generally known by. |
114
+ | 11 | `full_name` | `string` | Full name as recorded by the Nobel Foundation. |
115
+ | 12 | `given_name` | `string` | Given name(s). |
116
+ | 13 | `family_name` | `string` | Family name. |
117
+ | 14 | `gender` | `string` | male or female (as recorded); empty for organisations. |
118
+ | 15 | `org_name` | `string` | Organisation name, for prizes awarded to institutions. |
119
+ | 16 | `portion` | `number` | Fraction of the prize received (1 = the whole prize). |
120
+ | 17 | `motivation` | `string` | Citation explaining why the prize was awarded. |
121
+ | 18 | `birth_date` | `date` | Laureate date of birth. |
122
+ | 19 | `birth_city` | `string` | City of birth. |
123
+ | 20 | `birth_country` | `string` | Country of birth (as it was at the time). |
124
+ | 21 | `birth_country_now` | `string` | Present-day country of the birthplace. |
125
+ | 22 | `birth_continent` | `string` | Continent of the birthplace (supplied by the Nobel API). |
126
+ | 23 | `death_date` | `date` | Date of death, where applicable. |
127
+ | 24 | `death_city` | `string` | City of death. |
128
+ | 25 | `death_country_now` | `string` | Present-day country of death. |
129
+ | 26 | `affiliation_count` | `number` | Number of affiliations recorded at the time of the award. |
130
+ | 27 | `first_affiliation` | `string` | First affiliation listed. |
131
+ | 28 | `first_affiliation_city` | `string` | City of that affiliation. |
132
+ | 29 | `first_affiliation_country` | `string` | Country of that affiliation. |
133
+ | 30 | `affiliations_all` | `string` | Semicolon-separated list of all affiliations. |
134
+ | 31 | `age_at_award` | `number` | Laureate age in years at the award date (persons only). |
135
+ | 32 | `birth_year` | `number` | Year of birth. |
136
+ | 33 | `death_year` | `number` | Year of death. |
137
+ | 34 | `lifespan_years` | `number` | Age at death, or age at snapshot for living laureates. |
138
+ | 35 | `is_posthumous` | `boolean` | true when the prize was awarded after the laureate's death. |
139
+ | 36 | `is_shared` | `boolean` | true when the prize was split between two or more laureates. |
140
+ | 37 | `share_of_prize_pct` | `number` | Portion of the prize received, in percent. |
141
+ | 38 | `prize_amount_per_laureate_sek` | `number` | Prize amount divided by the number of laureates. |
142
+ | 39 | `value_of_portion_sek` | `number` | Prize amount multiplied by the laureate's portion. |
143
+ | 40 | `value_of_portion_adjusted_sek` | `number` | Inflation-adjusted value of that portion. |
144
+ | 41 | `decade` | `string` | Award decade. |
145
+ | 42 | `category_group` | `string` | Coarse category grouping used for comparisons. |
146
+ | 43 | `birth_decade` | `string` | Decade of birth. |
147
+ | 44 | `is_organisation` | `boolean` | true when the laureate is an institution rather than a person. |
148
+ | 45 | `century` | `string` | Century of the award. |
149
+ | 46 | `years_since_award` | `number` | Years between the award and the snapshot date. |
150
+
151
+
152
+
153
+ ---
154
+
155
+ ## 🌟 Support & Community
156
+ If you find this dataset valuable for your research, portfolio, or machine learning projects, **please give it an upvote (👍) on Kaggle!**
157
+ Feedback, questions, and notebook submissions are warmly welcomed in the Discussions tab.
about.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Nobel Prize Laureates 1901–2026
2
+
3
+ ### Every Nobel Prize ever awarded, one row per laureate
4
+
5
+ Straight from the Nobel Foundation's open API: **1,085 rows** covering the 126 award years from
6
+ 1901 to 2026, describing **1,005 individual laureates** and **31 organisational
7
+ laureates** through **46 parameters**.
8
+
9
+ Each row is one laureate receiving one prize (a shared prize therefore produces several rows sharing the
10
+ same `prize_year`/`category`), and includes:
11
+ - **The prize** — year, category and full official name, announcement date, prize amount in SEK, the
12
+ inflation-adjusted amount and how many laureates shared it.
13
+ - **The laureate** — API id, person/organisation type, known name, full name, given and family name,
14
+ gender, organisation name and the fraction of the prize received.
15
+ - **The citation** — the motivation text explaining the award.
16
+ - **Life and place** — birth date, city, country at the time and present-day country, continent of birth,
17
+ death date and city, all affiliations with their cities and countries.
18
+ - **Derived measures** — age at award, birth and death year, lifespan, posthumous and shared-prize flags,
19
+ share of the prize in percent, prize value per laureate, value of the laureate's own portion (raw and
20
+ inflation-adjusted), decade, century, category group and years since the award.
21
+
22
+ Years in which a prize was not awarded appear as a single row with `laureate_type = none`, so the file can
23
+ be used directly for time-series work without silently dropping years.
24
+
25
+ 46 columns; one row per laureate per prize.
data_dictionary.csv ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ column,data_type,description
2
+ prize_year,number,Year the prize was awarded.
3
+ category,string,"Nobel category (Physics, Chemistry, Medicine, Literature, Peace, Economic Sciences)."
4
+ category_full_name,string,Full official name of the prize.
5
+ date_awarded,date,Date the prize was announced/awarded.
6
+ prize_amount_sek,number,Prize amount in Swedish kronor at the time of the award.
7
+ prize_amount_adjusted_sek,number,Prize amount adjusted to a common price level (SEK).
8
+ n_laureates,number,Number of laureates sharing this prize.
9
+ laureate_id,number,Nobel Prize API laureate identifier.
10
+ laureate_type,string,"person, organisation, or none when the prize was not awarded."
11
+ known_name,string,Name the laureate is generally known by.
12
+ full_name,string,Full name as recorded by the Nobel Foundation.
13
+ given_name,string,Given name(s).
14
+ family_name,string,Family name.
15
+ gender,string,male or female (as recorded); empty for organisations.
16
+ org_name,string,"Organisation name, for prizes awarded to institutions."
17
+ portion,number,Fraction of the prize received (1 = the whole prize).
18
+ motivation,string,Citation explaining why the prize was awarded.
19
+ birth_date,date,Laureate date of birth.
20
+ birth_city,string,City of birth.
21
+ birth_country,string,Country of birth (as it was at the time).
22
+ birth_country_now,string,Present-day country of the birthplace.
23
+ birth_continent,string,Continent of the birthplace (supplied by the Nobel API).
24
+ death_date,date,"Date of death, where applicable."
25
+ death_city,string,City of death.
26
+ death_country_now,string,Present-day country of death.
27
+ affiliation_count,number,Number of affiliations recorded at the time of the award.
28
+ first_affiliation,string,First affiliation listed.
29
+ first_affiliation_city,string,City of that affiliation.
30
+ first_affiliation_country,string,Country of that affiliation.
31
+ affiliations_all,string,Semicolon-separated list of all affiliations.
32
+ age_at_award,number,Laureate age in years at the award date (persons only).
33
+ birth_year,number,Year of birth.
34
+ death_year,number,Year of death.
35
+ lifespan_years,number,"Age at death, or age at snapshot for living laureates."
36
+ is_posthumous,boolean,true when the prize was awarded after the laureate's death.
37
+ is_shared,boolean,true when the prize was split between two or more laureates.
38
+ share_of_prize_pct,number,"Portion of the prize received, in percent."
39
+ prize_amount_per_laureate_sek,number,Prize amount divided by the number of laureates.
40
+ value_of_portion_sek,number,Prize amount multiplied by the laureate's portion.
41
+ value_of_portion_adjusted_sek,number,Inflation-adjusted value of that portion.
42
+ decade,string,Award decade.
43
+ category_group,string,Coarse category grouping used for comparisons.
44
+ birth_decade,string,Decade of birth.
45
+ is_organisation,boolean,true when the laureate is an institution rather than a person.
46
+ century,string,Century of the award.
47
+ years_since_award,number,Years between the award and the snapshot date.
dataset-metadata.json ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "title": "Nobel Prize Laureates 1901-2026",
3
+ "id": "samyakrajbayar/nobel-prize-laureates",
4
+ "subtitle": "Every Nobel Prize with laureate demographics, affiliations and prize citations",
5
+ "description": "# Nobel Prize Laureates 1901-2026\n\n**Subtitle:** Every Nobel Prize with laureate demographics, affiliations and prize citations\n\n**Tags:** `history`, `science`, `education`, `research`, `society`, `awards`, `nobel`, `gender`, `tabular`, `social-science`\n\n**Dataset File:** `nobel_laureates.csv` (1,085 rows, 46 columns, 488.0 KB)\n\n---\n\n## \ud83d\udcd6 Description\n\n### Every Nobel Prize ever awarded, one row per laureate\n\nStraight from the Nobel Foundation's open API: **1,085 rows** covering the 126 award years from\n1901 to 2026, describing **1,005 individual laureates** and **31 organisational\nlaureates** through **46 parameters**.\n\nEach row is one laureate receiving one prize (a shared prize therefore produces several rows sharing the\nsame `prize_year`/`category`), and includes:\n- **The prize** \u2014 year, category and full official name, announcement date, prize amount in SEK, the\n inflation-adjusted amount and how many laureates shared it.\n- **The laureate** \u2014 API id, person/organisation type, known name, full name, given and family name,\n gender, organisation name and the fraction of the prize received.\n- **The citation** \u2014 the motivation text explaining the award.\n- **Life and place** \u2014 birth date, city, country at the time and present-day country, continent of birth,\n death date and city, all affiliations with their cities and countries.\n- **Derived measures** \u2014 age at award, birth and death year, lifespan, posthumous and shared-prize flags,\n share of the prize in percent, prize value per laureate, value of the laureate's own portion (raw and\n inflation-adjusted), decade, century, category group and years since the award.\n\nYears in which a prize was not awarded appear as a single row with `laureate_type = none`, so the file can\nbe used directly for time-series work without silently dropping years.\n\n## \ud83e\uddfe Columns (46)\n\n`prize_year`, `category`, `category_full_name`, `date_awarded`, `prize_amount_sek`, `prize_amount_adjusted_sek`, `n_laureates`, `laureate_id`, `laureate_type`, `known_name`, `full_name`, `given_name`, `family_name`, `gender`, `org_name`, `portion`, `motivation`, `birth_date`, `birth_city`, `birth_country`, `birth_country_now`, `birth_continent`, `death_date`, `death_city`, `death_country_now`, `affiliation_count`, `first_affiliation`, `first_affiliation_city`, `first_affiliation_country`, `affiliations_all`, `age_at_award`, `birth_year`, `death_year`, `lifespan_years`, `is_posthumous`, `is_shared`, `share_of_prize_pct`, `prize_amount_per_laureate_sek`, `value_of_portion_sek`, `value_of_portion_adjusted_sek`, `decade`, `category_group`, `birth_decade`, `is_organisation`, `century`, `years_since_award`\n\n## \ud83d\udca1 Ideas for using this data\n\n1. **Laureate demographics** \u2014 gender, birth continent and birth decade over 125 years of prizes.\n2. **Age at award** \u2014 distribution by category; physicists tend to be younger than literature laureates.\n3. **Institutional dominance** \u2014 which affiliations and countries produce the most laureates?\n4. **Shared prizes** \u2014 how the fraction of shared awards and the number of co-laureates evolved.\n5. **Prize value** \u2014 real (inflation-adjusted) prize amount per laureate over time.\n6. **Posthumous awards** \u2014 the rare cases and the rules that followed them.\n7. **Text mining** \u2014 the `motivation` field is clean prose; extract topics or build a citation-keyword trend.\n8. **Geography of science** \u2014 map birthplaces and affiliations; measure the rise of the United States and Asia.\n9. **Family names** \u2014 surname diversity among laureates, or name-origin inference.\n\n## \ud83d\udcc1 Files\n\n| File | What it is |\n|---|---|\n| `nobel_laureates.csv` | 1,085 laureate-prize rows x 46 parameters. |\n| `data_dictionary.csv` | Column / type / description for every field. |\n| `notebook.ipynb` | Starter notebook: demographics, age at award, prize value. |\n| `dataset-metadata.json` | Kaggle API metadata. |\n| `about.md` | Plain-text About block. |\n\n## \ud83c\udff7\ufe0f Tags\n\n`history`, `science`, `education`, `research`, `society`, `awards`, `nobel`, `gender`, `tabular`, `social-science`\n\n## \ud83d\udd17 Provenance\n\n- **Source:** **Nobel Prize open data API v2.1**, `https://api.nobelprize.org/2.1/nobelPrizes`,\n published by the Nobel Foundation (nobelprize.org).\n- **Query:** all prizes, sorted ascending by year, `limit=1000` (covers the entire award history).\n- **Transformation:** prize records exploded to one row per laureate, nested birth/death/affiliation objects\n flattened, and 16 derived columns added.\n- **Snapshot date:** 20 November 2026.\n\n## \ud83d\udd04 Update frequency\n\n**Annual.** New laureates are announced each October; re-run `scripts/16_nobel.py` after the announcement to extend the file.\n\n## \u26a0\ufe0f Caveats\n\n- Country names for birthplaces are given both as historical (`birth_country`) and present-day (`birth_country_now`) entities; use the latter for maps.\n- Some early laureates have no recorded birth date, so `age_at_award` is empty for them.\n- Organisational laureates (mostly Peace) have no gender, birth data or age.\n- `prize_amount_sek` changes meaning over time \u2014 compare using `prize_amount_adjusted_sek`.\n- Shared prizes produce multiple rows with the same `prize_year` and `category`; count prizes with `nunique` on year+category, not with `len`.\n- The Nobel Foundation records gender as a binary field, which limits analysis to that categorisation.\n\n## \ud83d\udcdc Licence\n\nThe Nobel Prize API is published by the Nobel Foundation for public use (CC0-style open data). Nobel Prize, Nobel Laureate and the Nobel medal are registered trademarks of the Nobel Foundation; this dataset is an independent compilation and is not endorsed by it.\n\n### \ud83d\udccb Column Definitions & File Header\n\n| # | Column Name | Data Type | Description |\n|---|---|---|---|\n| 1 | `prize_year` | `number` | Year the prize was awarded. |\n| 2 | `category` | `string` | Nobel category (Physics, Chemistry, Medicine, Literature, Peace, Economic Sciences). |\n| 3 | `category_full_name` | `string` | Full official name of the prize. |\n| 4 | `date_awarded` | `date` | Date the prize was announced/awarded. |\n| 5 | `prize_amount_sek` | `number` | Prize amount in Swedish kronor at the time of the award. |\n| 6 | `prize_amount_adjusted_sek` | `number` | Prize amount adjusted to a common price level (SEK). |\n| 7 | `n_laureates` | `number` | Number of laureates sharing this prize. |\n| 8 | `laureate_id` | `number` | Nobel Prize API laureate identifier. |\n| 9 | `laureate_type` | `string` | person, organisation, or none when the prize was not awarded. |\n| 10 | `known_name` | `string` | Name the laureate is generally known by. |\n| 11 | `full_name` | `string` | Full name as recorded by the Nobel Foundation. |\n| 12 | `given_name` | `string` | Given name(s). |\n| 13 | `family_name` | `string` | Family name. |\n| 14 | `gender` | `string` | male or female (as recorded); empty for organisations. |\n| 15 | `org_name` | `string` | Organisation name, for prizes awarded to institutions. |\n| 16 | `portion` | `number` | Fraction of the prize received (1 = the whole prize). |\n| 17 | `motivation` | `string` | Citation explaining why the prize was awarded. |\n| 18 | `birth_date` | `date` | Laureate date of birth. |\n| 19 | `birth_city` | `string` | City of birth. |\n| 20 | `birth_country` | `string` | Country of birth (as it was at the time). |\n| 21 | `birth_country_now` | `string` | Present-day country of the birthplace. |\n| 22 | `birth_continent` | `string` | Continent of the birthplace (supplied by the Nobel API). |\n| 23 | `death_date` | `date` | Date of death, where applicable. |\n| 24 | `death_city` | `string` | City of death. |\n| 25 | `death_country_now` | `string` | Present-day country of death. |\n| 26 | `affiliation_count` | `number` | Number of affiliations recorded at the time of the award. |\n| 27 | `first_affiliation` | `string` | First affiliation listed. |\n| 28 | `first_affiliation_city` | `string` | City of that affiliation. |\n| 29 | `first_affiliation_country` | `string` | Country of that affiliation. |\n| 30 | `affiliations_all` | `string` | Semicolon-separated list of all affiliations. |\n| 31 | `age_at_award` | `number` | Laureate age in years at the award date (persons only). |\n| 32 | `birth_year` | `number` | Year of birth. |\n| 33 | `death_year` | `number` | Year of death. |\n| 34 | `lifespan_years` | `number` | Age at death, or age at snapshot for living laureates. |\n| 35 | `is_posthumous` | `boolean` | true when the prize was awarded after the laureate's death. |\n| 36 | `is_shared` | `boolean` | true when the prize was split between two or more laureates. |\n| 37 | `share_of_prize_pct` | `number` | Portion of the prize received, in percent. |\n| 38 | `prize_amount_per_laureate_sek` | `number` | Prize amount divided by the number of laureates. |\n| 39 | `value_of_portion_sek` | `number` | Prize amount multiplied by the laureate's portion. |\n| 40 | `value_of_portion_adjusted_sek` | `number` | Inflation-adjusted value of that portion. |\n| 41 | `decade` | `string` | Award decade. |\n| 42 | `category_group` | `string` | Coarse category grouping used for comparisons. |\n| 43 | `birth_decade` | `string` | Decade of birth. |\n| 44 | `is_organisation` | `boolean` | true when the laureate is an institution rather than a person. |\n| 45 | `century` | `string` | Century of the award. |\n| 46 | `years_since_award` | `number` | Years between the award and the snapshot date. |\n\n\n\n---\n\n## \ud83c\udf1f Support & Community\nIf you find this dataset valuable for your research, portfolio, or machine learning projects, **please give it an upvote (\ud83d\udc4d) on Kaggle!**\nFeedback, questions, and notebook submissions are warmly welcomed in the Discussions tab.\n",
6
+ "isPrivate": false,
7
+ "licenses": [
8
+ {
9
+ "name": "CC0-1.0"
10
+ }
11
+ ],
12
+ "keywords": [
13
+ "history",
14
+ "science",
15
+ "research",
16
+ "education"
17
+ ],
18
+ "resources": [
19
+ {
20
+ "path": "nobel_laureates.csv",
21
+ "description": "Primary data file containing 1,085 records across 46 parameters.",
22
+ "schema": {
23
+ "fields": [
24
+ {
25
+ "name": "prize_year",
26
+ "type": "number",
27
+ "description": "Year the prize was awarded."
28
+ },
29
+ {
30
+ "name": "category",
31
+ "type": "string",
32
+ "description": "Nobel category (Physics, Chemistry, Medicine, Literature, Peace, Economic Sciences)."
33
+ },
34
+ {
35
+ "name": "category_full_name",
36
+ "type": "string",
37
+ "description": "Full official name of the prize."
38
+ },
39
+ {
40
+ "name": "date_awarded",
41
+ "type": "date",
42
+ "description": "Date the prize was announced/awarded."
43
+ },
44
+ {
45
+ "name": "prize_amount_sek",
46
+ "type": "number",
47
+ "description": "Prize amount in Swedish kronor at the time of the award."
48
+ },
49
+ {
50
+ "name": "prize_amount_adjusted_sek",
51
+ "type": "number",
52
+ "description": "Prize amount adjusted to a common price level (SEK)."
53
+ },
54
+ {
55
+ "name": "n_laureates",
56
+ "type": "number",
57
+ "description": "Number of laureates sharing this prize."
58
+ },
59
+ {
60
+ "name": "laureate_id",
61
+ "type": "number",
62
+ "description": "Nobel Prize API laureate identifier."
63
+ },
64
+ {
65
+ "name": "laureate_type",
66
+ "type": "string",
67
+ "description": "person, organisation, or none when the prize was not awarded."
68
+ },
69
+ {
70
+ "name": "known_name",
71
+ "type": "string",
72
+ "description": "Name the laureate is generally known by."
73
+ },
74
+ {
75
+ "name": "full_name",
76
+ "type": "string",
77
+ "description": "Full name as recorded by the Nobel Foundation."
78
+ },
79
+ {
80
+ "name": "given_name",
81
+ "type": "string",
82
+ "description": "Given name(s)."
83
+ },
84
+ {
85
+ "name": "family_name",
86
+ "type": "string",
87
+ "description": "Family name."
88
+ },
89
+ {
90
+ "name": "gender",
91
+ "type": "string",
92
+ "description": "male or female (as recorded); empty for organisations."
93
+ },
94
+ {
95
+ "name": "org_name",
96
+ "type": "string",
97
+ "description": "Organisation name, for prizes awarded to institutions."
98
+ },
99
+ {
100
+ "name": "portion",
101
+ "type": "number",
102
+ "description": "Fraction of the prize received (1 = the whole prize)."
103
+ },
104
+ {
105
+ "name": "motivation",
106
+ "type": "string",
107
+ "description": "Citation explaining why the prize was awarded."
108
+ },
109
+ {
110
+ "name": "birth_date",
111
+ "type": "date",
112
+ "description": "Laureate date of birth."
113
+ },
114
+ {
115
+ "name": "birth_city",
116
+ "type": "string",
117
+ "description": "City of birth."
118
+ },
119
+ {
120
+ "name": "birth_country",
121
+ "type": "string",
122
+ "description": "Country of birth (as it was at the time)."
123
+ },
124
+ {
125
+ "name": "birth_country_now",
126
+ "type": "string",
127
+ "description": "Present-day country of the birthplace."
128
+ },
129
+ {
130
+ "name": "birth_continent",
131
+ "type": "string",
132
+ "description": "Continent of the birthplace (supplied by the Nobel API)."
133
+ },
134
+ {
135
+ "name": "death_date",
136
+ "type": "date",
137
+ "description": "Date of death, where applicable."
138
+ },
139
+ {
140
+ "name": "death_city",
141
+ "type": "string",
142
+ "description": "City of death."
143
+ },
144
+ {
145
+ "name": "death_country_now",
146
+ "type": "string",
147
+ "description": "Present-day country of death."
148
+ },
149
+ {
150
+ "name": "affiliation_count",
151
+ "type": "number",
152
+ "description": "Number of affiliations recorded at the time of the award."
153
+ },
154
+ {
155
+ "name": "first_affiliation",
156
+ "type": "string",
157
+ "description": "First affiliation listed."
158
+ },
159
+ {
160
+ "name": "first_affiliation_city",
161
+ "type": "string",
162
+ "description": "City of that affiliation."
163
+ },
164
+ {
165
+ "name": "first_affiliation_country",
166
+ "type": "string",
167
+ "description": "Country of that affiliation."
168
+ },
169
+ {
170
+ "name": "affiliations_all",
171
+ "type": "string",
172
+ "description": "Semicolon-separated list of all affiliations."
173
+ },
174
+ {
175
+ "name": "age_at_award",
176
+ "type": "number",
177
+ "description": "Laureate age in years at the award date (persons only)."
178
+ },
179
+ {
180
+ "name": "birth_year",
181
+ "type": "number",
182
+ "description": "Year of birth."
183
+ },
184
+ {
185
+ "name": "death_year",
186
+ "type": "number",
187
+ "description": "Year of death."
188
+ },
189
+ {
190
+ "name": "lifespan_years",
191
+ "type": "number",
192
+ "description": "Age at death, or age at snapshot for living laureates."
193
+ },
194
+ {
195
+ "name": "is_posthumous",
196
+ "type": "boolean",
197
+ "description": "true when the prize was awarded after the laureate's death."
198
+ },
199
+ {
200
+ "name": "is_shared",
201
+ "type": "boolean",
202
+ "description": "true when the prize was split between two or more laureates."
203
+ },
204
+ {
205
+ "name": "share_of_prize_pct",
206
+ "type": "number",
207
+ "description": "Portion of the prize received, in percent."
208
+ },
209
+ {
210
+ "name": "prize_amount_per_laureate_sek",
211
+ "type": "number",
212
+ "description": "Prize amount divided by the number of laureates."
213
+ },
214
+ {
215
+ "name": "value_of_portion_sek",
216
+ "type": "number",
217
+ "description": "Prize amount multiplied by the laureate's portion."
218
+ },
219
+ {
220
+ "name": "value_of_portion_adjusted_sek",
221
+ "type": "number",
222
+ "description": "Inflation-adjusted value of that portion."
223
+ },
224
+ {
225
+ "name": "decade",
226
+ "type": "string",
227
+ "description": "Award decade."
228
+ },
229
+ {
230
+ "name": "category_group",
231
+ "type": "string",
232
+ "description": "Coarse category grouping used for comparisons."
233
+ },
234
+ {
235
+ "name": "birth_decade",
236
+ "type": "string",
237
+ "description": "Decade of birth."
238
+ },
239
+ {
240
+ "name": "is_organisation",
241
+ "type": "boolean",
242
+ "description": "true when the laureate is an institution rather than a person."
243
+ },
244
+ {
245
+ "name": "century",
246
+ "type": "string",
247
+ "description": "Century of the award."
248
+ },
249
+ {
250
+ "name": "years_since_award",
251
+ "type": "number",
252
+ "description": "Years between the award and the snapshot date."
253
+ }
254
+ ]
255
+ }
256
+ },
257
+ {
258
+ "path": "data_dictionary.csv",
259
+ "description": "Full field-level data dictionary detailing column names, data types, and semantic definitions."
260
+ },
261
+ {
262
+ "path": "notebook.ipynb",
263
+ "description": "Starter exploratory data analysis notebook."
264
+ }
265
+ ]
266
+ }
kernel-metadata.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "samyakrajbayar/nobel-prize-laureates-starter-notebook",
3
+ "title": "Nobel Prize Laureates 1901-2026 Starter Notebook",
4
+ "code_file": "notebook.ipynb",
5
+ "language": "python",
6
+ "kernel_type": "notebook",
7
+ "is_private": false,
8
+ "enable_gpu": false,
9
+ "enable_tpu": false,
10
+ "enable_internet": true,
11
+ "dataset_sources": [
12
+ "samyakrajbayar/nobel-prize-laureates"
13
+ ]
14
+ }
nobel_laureates.csv ADDED
The diff for this file is too large to render. See raw diff
 
notebook.ipynb ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "markdown",
5
+ "id": "7abc89a4",
6
+ "metadata": {},
7
+ "source": [
8
+ "# Nobel Prize Laureates\n",
9
+ "\n",
10
+ "Starter notebook for the Kaggle dataset in this folder. It loads `nobel_laureates.csv` with pandas and walks through quality checks and a first piece of analysis.\n",
11
+ "\n",
12
+ "**Files:** `nobel_laureates.csv`, `data_dictionary.csv`."
13
+ ]
14
+ },
15
+ {
16
+ "cell_type": "markdown",
17
+ "id": "0000f7f2",
18
+ "metadata": {},
19
+ "source": [
20
+ "## 1. Load the data"
21
+ ]
22
+ },
23
+ {
24
+ "cell_type": "code",
25
+ "id": "467066f6",
26
+ "metadata": {},
27
+ "execution_count": null,
28
+ "outputs": [],
29
+ "source": [
30
+ "import pandas as pd\n",
31
+ "\n",
32
+ "df = pd.read_csv(\"nobel_laureates.csv\")\n",
33
+ "df[\"age_at_award\"] = pd.to_numeric(df[\"age_at_award\"], errors=\"coerce\")\n",
34
+ "print(df.shape)\n",
35
+ "df[[\"prize_year\", \"category\", \"known_name\", \"age_at_award\"]].head()"
36
+ ]
37
+ },
38
+ {
39
+ "cell_type": "markdown",
40
+ "id": "325de123",
41
+ "metadata": {},
42
+ "source": [
43
+ "## 2. Shape, types and missing values"
44
+ ]
45
+ },
46
+ {
47
+ "cell_type": "code",
48
+ "id": "4de324f4",
49
+ "metadata": {},
50
+ "execution_count": null,
51
+ "outputs": [],
52
+ "source": [
53
+ "import pandas as pd\n",
54
+ "\n",
55
+ "print(f\"{df.shape[0]:,} rows x {df.shape[1]} columns\")\n",
56
+ "\n",
57
+ "missing = df.isna().mean().mul(100).sort_values(ascending=False)\n",
58
+ "missing[missing > 0].round(1).to_frame(\"missing_%\").head(15)"
59
+ ]
60
+ },
61
+ {
62
+ "cell_type": "markdown",
63
+ "id": "f2d963fe",
64
+ "metadata": {},
65
+ "source": [
66
+ "## 3. Numeric summary"
67
+ ]
68
+ },
69
+ {
70
+ "cell_type": "code",
71
+ "id": "aa2f8fd4",
72
+ "metadata": {},
73
+ "execution_count": null,
74
+ "outputs": [],
75
+ "source": [
76
+ "df.describe(include='number').T.round(2).head(20)"
77
+ ]
78
+ },
79
+ {
80
+ "cell_type": "markdown",
81
+ "id": "2fe8dde8",
82
+ "metadata": {},
83
+ "source": [
84
+ "## 4. Prizes per decade"
85
+ ]
86
+ },
87
+ {
88
+ "cell_type": "code",
89
+ "id": "3f25d3c0",
90
+ "metadata": {},
91
+ "execution_count": null,
92
+ "outputs": [],
93
+ "source": [
94
+ "(df.drop_duplicates([\"prize_year\", \"category\"])\n",
95
+ " .groupby([df[\"decade\"], \"category\"]).size().unstack(fill_value=0)\n",
96
+ " .plot.bar(stacked=True, figsize=(12, 6)))"
97
+ ]
98
+ },
99
+ {
100
+ "cell_type": "markdown",
101
+ "id": "54e8e1e2",
102
+ "metadata": {},
103
+ "source": [
104
+ "## 5. Age at award by category"
105
+ ]
106
+ },
107
+ {
108
+ "cell_type": "code",
109
+ "id": "72117551",
110
+ "metadata": {},
111
+ "execution_count": null,
112
+ "outputs": [],
113
+ "source": [
114
+ "df.boxplot(column=\"age_at_award\", by=\"category\", figsize=(11, 5), rot=30)"
115
+ ]
116
+ },
117
+ {
118
+ "cell_type": "markdown",
119
+ "id": "e9308f66",
120
+ "metadata": {},
121
+ "source": [
122
+ "## 6. Gender over time"
123
+ ]
124
+ },
125
+ {
126
+ "cell_type": "code",
127
+ "id": "435bcb0f",
128
+ "metadata": {},
129
+ "execution_count": null,
130
+ "outputs": [],
131
+ "source": [
132
+ "(df[df[\"laureate_type\"] == \"person\"]\n",
133
+ " .assign(gender=lambda t: t[\"gender\"].fillna(\"unknown\"))\n",
134
+ " .groupby([\"decade\", \"gender\"]).size().unstack(fill_value=0)\n",
135
+ " .plot.bar(stacked=True, figsize=(12, 5)))"
136
+ ]
137
+ },
138
+ {
139
+ "cell_type": "markdown",
140
+ "id": "aaacac45",
141
+ "metadata": {},
142
+ "source": [
143
+ "## 7. Most frequent affiliations"
144
+ ]
145
+ },
146
+ {
147
+ "cell_type": "code",
148
+ "id": "d0388848",
149
+ "metadata": {},
150
+ "execution_count": null,
151
+ "outputs": [],
152
+ "source": [
153
+ "df[\"first_affiliation\"].value_counts().head(20).sort_values().plot.barh(figsize=(8, 6))"
154
+ ]
155
+ },
156
+ {
157
+ "cell_type": "markdown",
158
+ "id": "b0b76b2f",
159
+ "metadata": {},
160
+ "source": [
161
+ "## 8. Real prize value per laureate"
162
+ ]
163
+ },
164
+ {
165
+ "cell_type": "code",
166
+ "id": "05faea65",
167
+ "metadata": {},
168
+ "execution_count": null,
169
+ "outputs": [],
170
+ "source": [
171
+ "val = (df.drop_duplicates([\"prize_year\", \"category\"])\n",
172
+ " .assign(per_laureate=lambda t: t[\"prize_amount_adjusted_sek\"] / t[\"n_laureates\"]))\n",
173
+ "val.sort_values(\"prize_year\").plot(x=\"prize_year\", y=\"per_laureate\", figsize=(10, 5))"
174
+ ]
175
+ },
176
+ {
177
+ "cell_type": "markdown",
178
+ "id": "6e43770c",
179
+ "metadata": {},
180
+ "source": [
181
+ "## Next steps\n",
182
+ "\n",
183
+ "See `KAGGLE.md` for analysis ideas, caveats and provenance."
184
+ ]
185
+ }
186
+ ],
187
+ "metadata": {
188
+ "kernelspec": {
189
+ "display_name": "Python 3",
190
+ "language": "python",
191
+ "name": "python3"
192
+ },
193
+ "language_info": {
194
+ "name": "python",
195
+ "version": "3.11",
196
+ "mimetype": "text/x-python",
197
+ "file_extension": ".py",
198
+ "codemirror_mode": {
199
+ "name": "ipython",
200
+ "version": 3
201
+ },
202
+ "pygments_lexer": "ipython3",
203
+ "nbconvert_exporter": "python"
204
+ }
205
+ },
206
+ "nbformat": 4,
207
+ "nbformat_minor": 5
208
+ }