ledger: extract GDP per capita (nominal USD) table from Wikipedia (222 rows)

This commit is contained in:
ledger committed 2026-10-21 10:13:29 +00:00
1 parent b54fc0f344
commit 13beb50c14
2 files changed
+234

No files matched your search

@@ -0,0 +1,11 @@
# GDP per capita (nominal, USD) — extraction provenance
- **Source**: Wikipedia, "List of countries by GDP (nominal) per capita"
- URL: https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)_per_capita
- **Extraction date**: 2026-10-21
- **Table**: the single `wikitable` on the page; rows 6..227 = data (222 rows); row 228 = the Notes row.
- **Columns**: country, imf (2026), world_bank (2025), un (2023-24)
- **Cleaning**: stripped HTML tags, footnote references, the `.mw-parser-output .sr-only` CSS leak, trailing year in parentheses, commas and spaces; a leading "—" is rendered as "N/A" (unavailable).
- **Notes**: "—" in the IMF column = not available (e.g. Monaco, Bermuda). Values are nominal US$ per capita, latest available year per source (column headers carry the year). The source table is sorted by IMF value descending.
Tables produced: `gdp_per_capita_usd.csv`.
+223
View File
@@ -0,0 +1,223 @@
country,imf_gdp_per_capita_usd,world_bank_gdp_per_capita_usd,un_gdp_per_capita_usd
Monaco,N/a,288002,288002
Liechtenstein,230417,220167,216392
Luxembourg,155733,147252,138596
Bermuda,N/a,142250,136766
Ireland,127837,131593,109874
Switzerland,124478,114769,104973
Norway,115188,94594,86717
Singapore,109117,98814,93853
Iceland,107464,98324,84450
CaymanIslands,N/a,104293,102833
UnitedStates,95212,90027,84817
IsleofMan,N/a,90015,N/a
Denmark,82713,76970,71021
Netherlands,78535,73684,66649
Macau,77049,75902,68680
Australia,75172,65130,68528
ChannelIslands,N/a,74586,N/a
FaroeIslands,N/a,74175,N/a
Israel,72441,60337,57770
SanMarino,70662,59871,58917
Sweden,69244,63133,57028
Austria,67020,62930,58634
Germany,65699,60496,55113
Belgium,64773,60750,56613
Qatar,63634,72525,71894
Greenland,N/a,58499,62078
UnitedKingdom,61108,57602,53313
HongKong,60322,56983,54871
Finland,60156,56149,53174
Canada,60105,55698,57120
UnitedArabEmirates,57109,50274,50088
Andorra,53988,54292,49304
Malta,52149,47907,46386
France,51448,48986,45950
NewZealand,51043,49591,49889
Italy,45886,43309,40112
"""]}'>Cyprus",44477,41783,40476
U.S.VirginIslands,N/a,44321,N/a
"""]}'>Taiwan",43951,N/a,N/a
Bahamas,43858,39455,39455
SouthKorea,43512,36227,36262
SintMaarten(Dutchpart),N/a,42978,38515
Aruba,42934,38591,38791
PuertoRico,41851,40620,38814
Guam,N/a,41833,N/a
Spain,41756,38627,35958
Slovenia,41631,37376,34212
Brunei,40613,32235,33418
CzechRepublic,39614,35917,32139
BritishVirginIslands,N/a,N/a,38627
Guyana,38572,32414,29670
TurksandCaicosIslands,N/a,37507,37760
Estonia,37310,34418,31434
SaudiArabia,36577,34537,36927
Lithuania,36135,32959,29684
Japan,35399,35951,32534
Portugal,34815,32082,30049
Anguilla,N/a,N/a,31269
Poland,31186,28420,23734
Slovakia,30884,28544,25746
CookIslands,N/a,N/a,30161
Croatia,29860,27104,23911
Greece,29413,26948,25592
NewCaledonia,N/a,29213,34981
Kuwait,28928,32312,32471
Latvia,28630,26312,23337
Barbados,28245,28365,26897
Bahrain,28147,30597,29314
Hungary,27884,25908,23037
Uruguay,27339,25216,23907
Romania,24742,22538,20130
NorthernMarianaIslands,N/a,23786,N/a
Cuba,N/a,9605,22957
Curaçao,N/a,22833,19200
AntiguaandBarbuda,22504,24819,23060
FrenchPolynesia,N/a,22440,22438
Oman,22425,19947,20825
Bulgaria,22300,20328,16773
SaintKittsandNevis,22237,22771,23916
SaintMartin(Frenchpart),N/a,21668,N/a
Palau,21308,19532,17513
CostaRica,21282,19970,18587
Turkey,21079,18599,15127
Panama,20877,19790,19103
Chile,19962,17995,16710
Russia,19953,17547,15007
Maldives,19507,14615,13379
Kazakhstan,19311,14692,14155
Seychelles,19157,19449,16576
TrinidadandTobago,18603,18967,17001
Montserrat,N/a,N/a,18451
AmericanSamoa,N/a,18018,N/a
Serbia,17126,15262,13223
Montenegro,16211,14817,12959
Mexico,16191,13889,14158
Nauru,16076,14640,15645
Argentina,16021,14898,13970
Malaysia,15981,13125,11867
"""]}'>China",15371,13862,13206
SaintLucia,15091,14746,14323
World,14217,14406,13097
Albania,13968,12998,9685
Mauritius,13671,12991,11763
Grenada,13298,12107,11705
DominicanRepublic,13245,11059,10876
Brazil,12397,10713,10311
Turkmenistan,12291,6540,9161
Belarus,11962,10279,8387
NorthMacedonia,11762,10490,9299
Peru,11498,9684,8456
SaintVincentandtheGrenadines,11405,12562,11294
"""]}'>Georgia",11234,9692,8980
Gabon,11034,8263,8219
BosniaandHerzegovina,10845,10382,9632
Colombia,10726,8562,7914
Armenia,10663,9474,8728
Dominica,10428,10989,10405
Paraguay,9907,7027,6457
"""]}'>Moldova",9497,8622,5997
MarshallIslands,9085,8489,7491
Suriname,8965,7070,6990
Kosovo,8902,7899,6621
Jamaica,8674,8003,7754
Mongolia,8570,7108,6786
Botswana,8563,7778,7695
Azerbaijan,8497,7411,7190
EquatorialGuinea,8484,6615,6493
Thailand,8372,8057,7347
Tuvalu,8367,6345,5851
Belize,8078,7866,7681
SouthAfrica,7659,6598,6267
Ecuador,7575,7125,6875
Libya,7557,6449,6569
Tonga,7343,6547,6218
"""]}'>Ukraine",7075,5866,5038
Fiji,7034,6642,6426
FederatedStatesofMicronesia,7010,4414,5058
Guatemala,6980,6598,6150
Algeria,6910,6051,5703
CapeVerde,6556,5797,5273
Lebanon,6443,4473,6543
Samoa,6303,5873,5749
ElSalvador,6124,5767,5580
Namibia,5742,4876,4413
Jordan,5598,5348,4618
Vietnam,5260,5066,4717
Iraq,5258,5410,6074
Indonesia,5153,5060,4925
Morocco,5141,4673,4217
SriLanka,5062,5002,4273
Tunisia,5053,4657,4357
Bhutan,4933,4493,4228
Eswatini,4775,4108,3981
SãoToméandPríncipe,4582,4084,3517
Uzbekistan,4575,3968,3162
Djibouti,4556,3906,3553
Philippines,4360,4171,3985
Venezuela,4355,3495,5298
Vanuatu,4052,4039,3332
Bolivia,4051,5148,3756
Egypt,4024,3086,2634
Angola,3876,3130,3092
Nicaragua,3732,3173,2848
Zimbabwe,3718,3021,2748
Honduras,3663,3598,3426
Kyrgyzstan,3620,3081,2432
Ghana,3604,3257,2409
Iran,3548,3924,4894
PapuaNewGuinea,3419,3020,2986
IvoryCoast,3264,3050,2690
"""]}'>Palestine",2853,3171,3640
Haiti,3095,2694,1705
Kiribati,3058,2559,2178
Mauritania,3015,2198,2121
Cambodia,3001,2872,2603
Bangladesh,2887,2597,2464
Congo,2867,2515,2291
Guinea,2785,1877,1597
Kenya,2785,2363,1952
India,2749,2703,2724
Laos,2331,2325,1958
SolomonIslands,2295,2086,2042
Cameroon,2115,1972,1737
Senegal,2054,1955,1682
Tajikistan,2005,1637,1161
Zambia,1882,1318,1331
Comoros,1859,2056,1703
Pakistan,1836,1596,1212
Benin,1800,1658,1394
Nigeria,1594,1224,1646
Nepal,1540,1536,1363
Timor-Leste,1520,1341,1503
Myanmar,1507,1489,1147
Togo,1480,1384,997
Uganda,1453,1206,1049
Guinea-Bissau,1429,1124,855
Zanzibar,N/a,N/a,1374
Mali,1343,1193,833
"""]}'>Tanzania",1325,1319,1209
BurkinaFaso,1316,1148,883
Lesotho,1298,1089,916
Chad,1295,1022,913
Rwanda,1291,1124,1010
Syria,N/a,1057,1230
Ethiopia,1111,933,1241
DRCongo,1111,807,655
Gambia,1030,919,890
Liberia,976,915,917
SierraLeone,947,846,758
CentralAfricanRepublic,891,556,496
Somalia,850,661,597
Niger,740,775,643
Malawi,740,672,509
Mozambique,673,627,623
Eritrea,N/a,688,656
Madagascar,649,599,598
SouthSudan,642,1080,403
NorthKorea,N/a,N/a,640
Sudan,597,1165,680
Yemen,567,634,222
Burundi,510,234,289
Afghanistan,448,417,396
1 country imf_gdp_per_capita_usd world_bank_gdp_per_capita_usd un_gdp_per_capita_usd
2 Monaco N/a 288002 288002
3 Liechtenstein 230417 220167 216392
4 Luxembourg 155733 147252 138596
5 Bermuda N/a 142250 136766
6 Ireland 127837 131593 109874
7 Switzerland 124478 114769 104973
8 Norway 115188 94594 86717
9 Singapore 109117 98814 93853
10 Iceland 107464 98324 84450
11 CaymanIslands N/a 104293 102833
12 UnitedStates 95212 90027 84817
13 IsleofMan N/a 90015 N/a
14 Denmark 82713 76970 71021
15 Netherlands 78535 73684 66649
16 Macau 77049 75902 68680
17 Australia 75172 65130 68528
18 ChannelIslands N/a 74586 N/a
19 FaroeIslands N/a 74175 N/a
20 Israel 72441 60337 57770
21 SanMarino 70662 59871 58917
22 Sweden 69244 63133 57028
23 Austria 67020 62930 58634
24 Germany 65699 60496 55113
25 Belgium 64773 60750 56613
26 Qatar 63634 72525 71894
27 Greenland N/a 58499 62078
28 UnitedKingdom 61108 57602 53313
29 HongKong 60322 56983 54871
30 Finland 60156 56149 53174
31 Canada 60105 55698 57120
32 UnitedArabEmirates 57109 50274 50088
33 Andorra 53988 54292 49304
34 Malta 52149 47907 46386
35 France 51448 48986 45950
36 NewZealand 51043 49591 49889
37 Italy 45886 43309 40112
38 "]}'>Cyprus 44477 41783 40476
39 U.S.VirginIslands N/a 44321 N/a
40 "]}'>Taiwan 43951 N/a N/a
41 Bahamas 43858 39455 39455
42 SouthKorea 43512 36227 36262
43 SintMaarten(Dutchpart) N/a 42978 38515
44 Aruba 42934 38591 38791
45 PuertoRico 41851 40620 38814
46 Guam N/a 41833 N/a
47 Spain 41756 38627 35958
48 Slovenia 41631 37376 34212
49 Brunei 40613 32235 33418
50 CzechRepublic 39614 35917 32139
51 BritishVirginIslands N/a N/a 38627
52 Guyana 38572 32414 29670
53 TurksandCaicosIslands N/a 37507 37760
54 Estonia 37310 34418 31434
55 SaudiArabia 36577 34537 36927
56 Lithuania 36135 32959 29684
57 Japan 35399 35951 32534
58 Portugal 34815 32082 30049
59 Anguilla N/a N/a 31269
60 Poland 31186 28420 23734
61 Slovakia 30884 28544 25746
62 CookIslands N/a N/a 30161
63 Croatia 29860 27104 23911
64 Greece 29413 26948 25592
65 NewCaledonia N/a 29213 34981
66 Kuwait 28928 32312 32471
67 Latvia 28630 26312 23337
68 Barbados 28245 28365 26897
69 Bahrain 28147 30597 29314
70 Hungary 27884 25908 23037
71 Uruguay 27339 25216 23907
72 Romania 24742 22538 20130
73 NorthernMarianaIslands N/a 23786 N/a
74 Cuba N/a 9605 22957
75 Curaçao N/a 22833 19200
76 AntiguaandBarbuda 22504 24819 23060
77 FrenchPolynesia N/a 22440 22438
78 Oman 22425 19947 20825
79 Bulgaria 22300 20328 16773
80 SaintKittsandNevis 22237 22771 23916
81 SaintMartin(Frenchpart) N/a 21668 N/a
82 Palau 21308 19532 17513
83 CostaRica 21282 19970 18587
84 Turkey 21079 18599 15127
85 Panama 20877 19790 19103
86 Chile 19962 17995 16710
87 Russia 19953 17547 15007
88 Maldives 19507 14615 13379
89 Kazakhstan 19311 14692 14155
90 Seychelles 19157 19449 16576
91 TrinidadandTobago 18603 18967 17001
92 Montserrat N/a N/a 18451
93 AmericanSamoa N/a 18018 N/a
94 Serbia 17126 15262 13223
95 Montenegro 16211 14817 12959
96 Mexico 16191 13889 14158
97 Nauru 16076 14640 15645
98 Argentina 16021 14898 13970
99 Malaysia 15981 13125 11867
100 "]}'>China 15371 13862 13206
101 SaintLucia 15091 14746 14323
102 World 14217 14406 13097
103 Albania 13968 12998 9685
104 Mauritius 13671 12991 11763
105 Grenada 13298 12107 11705
106 DominicanRepublic 13245 11059 10876
107 Brazil 12397 10713 10311
108 Turkmenistan 12291 6540 9161
109 Belarus 11962 10279 8387
110 NorthMacedonia 11762 10490 9299
111 Peru 11498 9684 8456
112 SaintVincentandtheGrenadines 11405 12562 11294
113 "]}'>Georgia 11234 9692 8980
114 Gabon 11034 8263 8219
115 BosniaandHerzegovina 10845 10382 9632
116 Colombia 10726 8562 7914
117 Armenia 10663 9474 8728
118 Dominica 10428 10989 10405
119 Paraguay 9907 7027 6457
120 "]}'>Moldova 9497 8622 5997
121 MarshallIslands 9085 8489 7491
122 Suriname 8965 7070 6990
123 Kosovo 8902 7899 6621
124 Jamaica 8674 8003 7754
125 Mongolia 8570 7108 6786
126 Botswana 8563 7778 7695
127 Azerbaijan 8497 7411 7190
128 EquatorialGuinea 8484 6615 6493
129 Thailand 8372 8057 7347
130 Tuvalu 8367 6345 5851
131 Belize 8078 7866 7681
132 SouthAfrica 7659 6598 6267
133 Ecuador 7575 7125 6875
134 Libya 7557 6449 6569
135 Tonga 7343 6547 6218
136 "]}'>Ukraine 7075 5866 5038
137 Fiji 7034 6642 6426
138 FederatedStatesofMicronesia 7010 4414 5058
139 Guatemala 6980 6598 6150
140 Algeria 6910 6051 5703
141 CapeVerde 6556 5797 5273
142 Lebanon 6443 4473 6543
143 Samoa 6303 5873 5749
144 ElSalvador 6124 5767 5580
145 Namibia 5742 4876 4413
146 Jordan 5598 5348 4618
147 Vietnam 5260 5066 4717
148 Iraq 5258 5410 6074
149 Indonesia 5153 5060 4925
150 Morocco 5141 4673 4217
151 SriLanka 5062 5002 4273
152 Tunisia 5053 4657 4357
153 Bhutan 4933 4493 4228
154 Eswatini 4775 4108 3981
155 SãoToméandPríncipe 4582 4084 3517
156 Uzbekistan 4575 3968 3162
157 Djibouti 4556 3906 3553
158 Philippines 4360 4171 3985
159 Venezuela 4355 3495 5298
160 Vanuatu 4052 4039 3332
161 Bolivia 4051 5148 3756
162 Egypt 4024 3086 2634
163 Angola 3876 3130 3092
164 Nicaragua 3732 3173 2848
165 Zimbabwe 3718 3021 2748
166 Honduras 3663 3598 3426
167 Kyrgyzstan 3620 3081 2432
168 Ghana 3604 3257 2409
169 Iran 3548 3924 4894
170 PapuaNewGuinea 3419 3020 2986
171 IvoryCoast 3264 3050 2690
172 "]}'>Palestine 2853 3171 3640
173 Haiti 3095 2694 1705
174 Kiribati 3058 2559 2178
175 Mauritania 3015 2198 2121
176 Cambodia 3001 2872 2603
177 Bangladesh 2887 2597 2464
178 Congo 2867 2515 2291
179 Guinea 2785 1877 1597
180 Kenya 2785 2363 1952
181 India 2749 2703 2724
182 Laos 2331 2325 1958
183 SolomonIslands 2295 2086 2042
184 Cameroon 2115 1972 1737
185 Senegal 2054 1955 1682
186 Tajikistan 2005 1637 1161
187 Zambia 1882 1318 1331
188 Comoros 1859 2056 1703
189 Pakistan 1836 1596 1212
190 Benin 1800 1658 1394
191 Nigeria 1594 1224 1646
192 Nepal 1540 1536 1363
193 Timor-Leste 1520 1341 1503
194 Myanmar 1507 1489 1147
195 Togo 1480 1384 997
196 Uganda 1453 1206 1049
197 Guinea-Bissau 1429 1124 855
198 Zanzibar N/a N/a 1374
199 Mali 1343 1193 833
200 "]}'>Tanzania 1325 1319 1209
201 BurkinaFaso 1316 1148 883
202 Lesotho 1298 1089 916
203 Chad 1295 1022 913
204 Rwanda 1291 1124 1010
205 Syria N/a 1057 1230
206 Ethiopia 1111 933 1241
207 DRCongo 1111 807 655
208 Gambia 1030 919 890
209 Liberia 976 915 917
210 SierraLeone 947 846 758
211 CentralAfricanRepublic 891 556 496
212 Somalia 850 661 597
213 Niger 740 775 643
214 Malawi 740 672 509
215 Mozambique 673 627 623
216 Eritrea N/a 688 656
217 Madagascar 649 599 598
218 SouthSudan 642 1080 403
219 NorthKorea N/a N/a 640
220 Sudan 597 1165 680
221 Yemen 567 634 222
222 Burundi 510 234 289
223 Afghanistan 448 417 396