Skip to content

Instantly share code, notes, and snippets.

@emordonez
Last active May 13, 2021 16:17
Show Gist options
  • Save emordonez/78658ad9507efa2a6f586a9d24d23ea3 to your computer and use it in GitHub Desktop.
Save emordonez/78658ad9507efa2a6f586a9d24d23ea3 to your computer and use it in GitHub Desktop.
Example analysis and visualizations of World Bank data for ASEAN GDP indicators.
if (!require("pacman")) install.packages("pacman")
pacman::p_load("dplyr", "ggplot2", "readr", "reticulate", "showtext")
# Utility function to save ggplots
save_image <- function(filename, plot, width = 7, height = 7) {
ggsave(
sprintf("%s.png", filename),
plot,
width = width, height = height,
units = "in", dpi = 96
)
}
# ggplot theme and text settings
plot_settings <- list(
labs(
caption = "Data: World Bank | github.com/emordonez"
),
theme_minimal(),
theme(
legend.position = "none",
plot.margin = margin(10, 10, 10, 10, "pt"),
text = element_text(family = "Open Sans"),
plot.title = element_text(face = "bold"),
plot.subtitle = element_text(face = "plain"),
plot.caption = element_text(face = "italic"),
axis.title.x = element_text(margin = margin(7, 0, 0, 0, "pt")),
axis.title.y = element_text(margin = margin(0, 7, 0, 0, "pt"))
)
)
font_add_google("Open Sans", "Open Sans")
showtext_auto(enable = TRUE)
# Read data
source_python("data.py")
df <- read_data("./world-bank-data.csv")
df <- df %>%
mutate(
country = case_when(
country == "Brunei Darussalam" ~ "Brunei",
country == "Hong Kong SAR, China" ~ "Hong Kong",
country == "Lao PDR" ~ "Laos",
country == "Korea, Rep." ~ "South Korea",
TRUE ~ country
),
gdp_constant_usd = gdp_constant_usd / 1e3,
gdp_per_capita = gdp_per_capita / 1e3
)
asean_names <- c(
"Brunei", "Cambodia", "Indonesia", "Laos", "Malaysia",
"Myanmar", "Philippines", "Singapore", "Thailand", "Vietnam"
)
other_country_names <- c(
"Australia", "China", "European Union", "Hong Kong",
"India", "Japan", "South Korea", "United States"
)
asean_countries <- df %>% filter(country %in% asean_names)
other_countries <- df %>% filter(country %in% other_country_names)
asean <- df %>% filter(country == "ASEAN")
world <- df %>% filter(country == "World")
#'
#' PLOT 1: Real GDP per capita among ASEAN countries
#'
world_gdp_pc <- tail(world$gdp_per_capita, n = 1)
viz_rgdp_pc_2019 <- asean_countries %>%
filter(year == 2019) %>%
select(country, gdp_per_capita) %>%
ggplot(aes(x = reorder(country, gdp_per_capita), y = gdp_per_capita)) +
geom_col(aes(alpha = 0.75, fill = country)) +
geom_text(
aes(
label = sprintf("%0.1f", gdp_per_capita),
y = gdp_per_capita,
hjust = -0.25
),
size = 4.5
) +
geom_hline(yintercept = world_gdp_pc) +
annotate(
"text",
x = "Vietnam",
y = 20,
label = sprintf("Global average, %0.1f", world_gdp_pc),
size = 4
) +
labs(
title = "Real GDP per capita among ASEAN countries",
subtitle = paste(
"ASEAN members span lower middle income (Cambodia), upper middle",
"income \n(Indonesia), and high income economies (Brunei)."
),
x = NULL,
y = "Real GDP per capita, thousand USD (2010)"
) +
scale_y_continuous(expand = expansion(mult = c(0, 0.08))) +
plot_settings +
coord_flip()
save_image("1-rgdp-per-capita-2019", viz_rgdp_pc_2019)
#'
#' PLOT 2: Average annual growth in real GDP since 2000
#'
avg_annual_growth_rates <- asean %>%
rbind(other_countries) %>%
filter(year == 2000 | year == 2019) %>%
select(country, year, gdp_constant_usd) %>%
group_by(country) %>%
mutate(
avg_annual_growth = (gdp_constant_usd[year == 2019] / gdp_constant_usd[year == 2000])^(1 / 19) - 1
) %>%
filter(year == 2019) %>%
select(country, avg_annual_growth) %>%
ungroup()
viz_avg_annual_growth_rates <- avg_annual_growth_rates %>%
mutate(country = case_when(
country == "European Union" ~ "EU",
country == "United States" ~ "US",
TRUE ~ country
)) %>%
ggplot(aes(x = reorder(country, -avg_annual_growth), y = avg_annual_growth)) +
geom_bar(aes(fill = country, alpha = 0.95), stat = "identity", width = 1, color = "white") +
geom_label(
aes(
label = sprintf("%s\n%0.1f%%", country, avg_annual_growth * 100)
),
fill = alpha(c("white"), 1),
y = 0.1035,
size = 4.5,
label.size = NA
) +
labs(
title = "Average annual growth in real GDP since 2000",
subtitle = paste(
"Collectively, ASEAN's economic growth is outpaced in Asia only by",
"China and India."
),
x = NULL,
y = NULL
) +
plot_settings +
theme(
panel.grid.major = element_line(color = "grey85"),
axis.text = element_blank()
) +
coord_polar()
save_image("2-rgdp-growth-since-2000", viz_avg_annual_growth_rates)
#'
#' PLOT 3: Asia's growth in income since 1967
#'
gdp_since_1967 <- asean %>%
rbind(other_countries) %>%
filter(country %in% c("ASEAN", "China", "India") & year >= 1967) %>%
select(country, year, gdp_per_capita)
china_gdp_pc_2002 <- tail(
filter(gdp_since_1967, country == "China" & year == 2002)$gdp_per_capita,
n = 1
)
viz_gdp_since_1967 <- gdp_since_1967 %>%
ggplot(aes(x = year, y = gdp_per_capita)) +
geom_line(aes(color = country), size = 1) +
annotate(
"rect",
xmin = 1996, xmax = 1999,
ymin = 0, ymax = Inf,
fill = "grey", alpha = 0.35
) +
annotate(
"point",
x = 2002,
y = china_gdp_pc_2002,
color = "black"
) +
annotate(
"text",
x = 1987,
y = 3.5,
label = "1997 Asian financial crisis",
size = 4
) +
annotate(
"text",
x = 2010,
y = 2,
label = "China joins the WTO,\nDec 2001",
size = 4
) +
labs(
title = "Asia's growth in income since 1967",
subtitle = paste(
"Measured by GDP per capita, China has overtaken ASEAN in prosperity",
"only within \nthe past 15 years. ASEAN was most affected by the",
"Asian financial crisis but has \nrecovered to pre-crisis levels",
"of growth."
),
x = "Year",
y = "Real GDP per capita, thousand USD (2010)"
) +
plot_settings +
theme(
legend.title = element_blank(),
legend.position = c(0, 1),
legend.justification = c(0, 1),
legend.text = element_text(size = 10)
)
save_image("3-asian-income-since-1967", viz_gdp_since_1967)
#'
#' PLOT 4: GDP growth among ASEAN countries since 2000
#'
asean_since_2000 <- asean_countries %>%
filter(year >= 2000) %>%
mutate(
income = case_when(
code %in% c("SGP", "BRN") ~ "High income (Singapore, Brunei)",
code %in% c("MYS", "THA", "IDN") ~ "Upper middle income (Malaysia, Thailand, Indonesia)",
TRUE ~ "Lower middle income (Philippines, Vietnam, Laos, Myanmar, Cambodia)"
)
) %>%
select(country, year, gdp_growth, income)
asean_avg_rate <- tail(
filter(avg_annual_growth_rates, country == "ASEAN")$avg_annual_growth,
n = 1
) * 100
viz_asean_since_2000 <- asean_since_2000 %>%
ggplot(aes(x = year, y = gdp_growth * 100, color = country)) +
geom_line(size = 0.5) +
geom_point(size = 0.75) +
geom_hline(yintercept = asean_avg_rate, linetype = "dashed") +
annotate(
"rect",
xmin = 2000, xmax = 2001,
ymin = -Inf, ymax = Inf,
fill = "grey", alpha = 0.35
) +
annotate(
"rect",
xmin = 2007, xmax = 2009,
ymin = -Inf, ymax = Inf,
fill = "grey", alpha = 0.35
) +
annotate(
"text",
x = 2017,
y = 10,
label = sprintf("ASEAN average, %0.1f%%", asean_avg_rate),
size = 3.5
) +
labs(
title = "GDP growth among ASEAN countries since 2000",
subtitle = paste(
"The aftermath of the 1997 financial crisis and the 2008 crisis",
"impacted the more \ndeveloped ASEAN countries harder. The less",
"developed countries consistently \nhave above average growth."
),
x = "Year",
y = "Annual percent growth of real GDP (2010 USD)"
) +
plot_settings +
theme(
strip.text = element_text(size = 10, face = "bold"),
legend.title = element_blank(),
legend.position = "bottom"
) +
facet_wrap(
~factor(income, levels = c(
"High income (Singapore, Brunei)",
"Upper middle income (Malaysia, Thailand, Indonesia)",
"Lower middle income (Philippines, Vietnam, Laos, Myanmar, Cambodia)")
),
ncol = 1
)
save_image("4-asean-growth-since-2000", viz_asean_since_2000, height = 11.5)
import pandas as pd
def read_data(file):
data = pd.read_csv(file)
countries = [country for country in set(data['Country Name'])]
asean_codes = [
'BRN', 'KHM', 'IDN', 'LAO', 'MYS',
'MMR', 'PHL', 'SGP', 'THA', 'VNM'
]
# Indicator variables, see CSV metadata
gdp_indicator = 'GDP (constant 2010 US$)'
population_indicator = 'Population, total'
df_list = []
for country in countries:
df = data[data['Country Name'] == country]
gdp = df[df['Indicator Name'] == gdp_indicator]
gdp = pd.melt(
gdp,
id_vars=['Country Name', 'Country Code'],
# Looking at 1960-2019, 2020 data not in yet
value_vars=gdp.columns[3:-1],
var_name='year',
value_name='gdp_constant_usd'
)
population = df[df['Indicator Name'] == population_indicator]
population = pd.melt(
population,
id_vars=['Country Name', 'Country Code'],
value_vars=population.columns[3:-1],
var_name='year',
value_name='population'
)
df = gdp.merge(population, on=['Country Name', 'Country Code', 'year'])
df.rename(
columns={'Country Name': 'country', 'Country Code': 'code'},
inplace=True
)
df_list.append(df)
def format_cols(df):
df['year'] = pd.to_numeric(df.year, downcast='integer')
df['gdp_constant_usd'] = pd.to_numeric(
df.gdp_constant_usd, errors='coerce'
)
df['population'] = pd.to_numeric(
df.population, errors='coerce', downcast='integer'
)
# NaN can be safely filled with 0
# Rows with NaN GDP or population will be dropped anyway
df['gdp_growth'] = df.gdp_constant_usd.pct_change().fillna(0)
df['pop_growth'] = df.population.pct_change().fillna(0)
df.dropna(inplace=True)
df['gdp_per_capita'] = df.gdp_constant_usd / df.population
df['gdp_pc_growth'] = df.gdp_per_capita.pct_change().fillna(0)
return df
for df in df_list:
df = format_cols(df)
df = pd.concat(df_list, ignore_index=True)
# Aggregate ASEAN members onward from the year they joined ASEAN
asean = df[df.code.isin(asean_codes)]
# 1967: Indonesia, Malaysia, Philippines, Singapore, Thailand
asean_67 = asean.loc[asean.code.isin(['IDN', 'MYS', 'PHL', 'SGP', 'THA'])] \
.loc[asean.year >= 1967]
# 1984: Brunei
asean_84 = asean.loc[asean.code == 'BRN'] \
.loc[asean.year >= 1984]
# 1995: Vietnam
asean_95 = asean.loc[asean.code == 'VNM'] \
.loc[asean.year >= 1995]
# 1997: Laos, Myanmar
asean_97 = asean.loc[asean.code.isin(['LAO', 'MMR'])] \
.loc[asean.year >= 1997]
# 1999: Cambodia
asean_99 = asean.loc[asean.code == 'KHM'] \
.loc[asean.year >= 1999]
asean = pd.concat([
asean_67,
asean_84,
asean_95,
asean_97,
asean_99
], ignore_index=True)
asean['country'] = 'ASEAN'
asean['code'] = 'SEA'
asean = asean.groupby(['country', 'code', 'year'], as_index=False) \
.agg({'gdp_constant_usd': 'sum', 'population': 'sum'}) \
.pipe(format_cols)
return pd.concat([df, asean], ignore_index=True)
Country Name Country Code Indicator Name 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
Brunei Darussalam BRN GDP (constant 2010 US$) 7076283755.04218 7101437330.39971 8532760029.33627 9464255592.2259 10105537880.4547 12385592665.9333 11519009534.2868 9235168243.49102 9600571983.86506 9648715584.89183 9706595966.2633 9561894976.16429 9302244591.12579 9489138760.54273 9593269453.61203 9490220608.72754 9593609020.9021 9895418335.16685 10366299816.6483 10397872753.9421 10724927172.7173 11205265273.194 11527788412.1746 11358194866.1533 11294758342.5009 11639492115.8783 11971150348.3682 12299643564.3564 12775897689.769 13146904070.407 13213206307.2974 13264408434.1768 13847739933.9934 13869146021.2688 13600124165.7499 13360145141.1808 13707370737.0737 14220755408.8742 14350568390.1724 14045471213.788 13693161276.1276 13639431536.487 13301457645.7646 13478181151.4485 13485221855.5189 14006979904.6571
Indonesia IDN GDP (constant 2010 US$) 60580597267.2392 64058314793.6084 65238254668.6196 63778855349.5244 66030056426.8482 66744230561.7269 68607293522.2791 69554350527.2296 77146332091.4747 82409484955.0241 88635220348.1984 94860955741.3727 101536931350.016 109765459425.779 118145693216.164 124026159828.575 132567301909.338 144181954870.16 153938848478.323 165213806159.438 181537058284.482 195927785588.603 200329196198.436 208728934024.014 223288878861.957 228786571622.488 242227885896.286 254159855613.23 268851562224.355 288898712661.288 309821137734.337 331235921596.565 352757997188.374 375674596363.267 404000352342.248 437209211196.907 471391045244.884 493545853299.545 428759443957.88 432151471748.063 453413616927.798 469933589927.666 491078136159.835 514553483744.125 540440020890.984 571204954434.658 602626663572.802 640863459320.349 679403088245.167 710851782010.38 755094160363.071 801681840622.493 850023661688.382 897261717986.534 942184637117.353 988128596686.365 1037861792572.64 1090479163407.98 1146853725883.45 1204479845861.69
Cambodia KHM GDP (constant 2010 US$) 5084948751.55304 3314947308.86254 3643242084.68339 3858102491.00526 4012682038.43226 4200541049.13779 4734235799.13574 5241366891.85216 5631670884.44008 6002175104.92402 6512713850.50169 7186162900.36652 8138335730.42109 9014922681.30467 9935578323.29943 10600425244.3636 10609615490.7202 11242275198.9783 12037055707.6797 12917367180.2477 13867654629.7499 14858161721.6852 15903594933.6638 17021771409.6407 18184202213.3847 19542411045.6452 20920953617.9607
Lao PDR LAO GDP (constant 2010 US$) 1516865496.45085 1593770030.2609 1671627820.11139 1647793878.0009 1614669908.16358 1843801847.5978 1967420993.30949 2051952488.37673 2166038128.19252 2294106357.55325 2481282920.37532 2655748233.09473 2839747068.00933 3034897078.44882 3155309900.49614 3385848708.09639 3582186704.57195 3788213052.16281 4012427672.83985 4255861752.18768 4526436482.44701 4848156050.11908 5266031526.29351 5666082925.92663 6109448405.32914 6567765473.09865 7127792629.58294 7700771122.88344 8318842593.38626 8986537875.29121 9670589852.94697 10373648102.7012 11102172422.625 11867393084.3947 12608863058.2475 13195413134.6638
Myanmar MMR GDP (constant 2010 US$) 3333228175.42212 3348946382.21766 3485813551.97165 3951145083.56489 3718263847.95787 4115844769.08342 3916153089.07983 3684110880.31147 4128390344.11123 4264286266.68776 4476619177.51576 4661501868.33129 4775048659.43713 4728820233.05256 4981451575.58329 5188316772.8846 5503786990.3065 5831388166.40491 6211467377.00038 6534543030.90388 7053290217.82045 7501580034.72374 7921959309.83461 8269819885.19247 8677747608.38401 8925150213.41148 8830780248.57113 8477051707.97687 7514699543.41028 7792390041.95993 8011896469.83656 7959769716.7425 8728758488.44639 9255924021.27763 9948078165.27153 10639275753.1676 11324734004.9744 11964760742.6246 12666639111.0325 14053019226.0891 15984737489.9272 17798045642.4078 19938352012.1209 22698616844.6237 25777607411.1761 29275358077.5655 33103433579.0232 37073010378.8848 40874960811.6237 45187272895.3094 49540813342.4834 52310879190.5433 56146663569.5951 60877582017.3892 65742258214.0691 70339509334.1836 74384076490.0902 79148359722.8005 84491238202.278 86931311984.4758
Malaysia MYS GDP (constant 2010 US$) 11043462325.71 11882543930.5131 12645525594.6301 13573555872.9667 14300957697.6848 15399966772.3369 16603737673.0734 17244168158.32 18619906969.9662 19530147388.2784 20699327206.1595 22776434433.6269 24914787451.2891 27830087064.5668 30145177933.9344 30386661335.2744 33900419812.7423 36528739151.9636 38959322082.842 42601668036.9521 45772010379.2793 48949551033.7686 51858697477.636 55101022941.5859 59377848696.2851 58769077153.4186 59498163342.4258 62587267590.3503 68807014796.8995 75040655705.3244 81800713540.3902 89608973996.1033 97570837054.8205 107225416091.681 117103066235.138 128613226384.05 141478022462.092 151838092821.984 140663697157.407 149297089128.661 162523121435.76 163364463523.414 172171422649.637 182137564220.214 194492752460.562 204863376680.625 216304682964.84 229929251895.757 241038904255.161 237390711222.558 255016609232.871 268516966238.238 283214119384.483 296507404301.652 314317779626.115 330321371282.475 345019950214.151 365075002178.644 382488813364.085 398946603155.68
Philippines PHL GDP (constant 2010 US$) 28897257011.7237 30520294372.7886 31977065211.4209 34234801878.8127 35414869387.0664 37279749285.0702 38929748816.3426 41002427111.1187 43030168554.8956 45033807499.7182 46729152404.8966 49265905830.7764 51949316806.7636 56583531885.7699 58596839066.731 61857620511.7436 67305192627.9987 71075666925.4143 74751773830.6432 78967531488.9414 83033499636.6399 85875959836.4581 88984092157.7723 90652202603.5044 84013123029.1275 77874612758.5322 80535419137.1405 84007812311.2982 89680477205.4557 95245429826.9138 98138001427.3156 97570435359.1667 97899836105.9144 99971697365.8623 104358078893.401 109240672210.59 115626743688.89 121622409236.686 120920990731.627 124647674647.195 130146160491.487 134114618011.032 139098659210.722 146174484394.93 155777020300.787 163476307503.032 172167389414.077 183391483484.33 191358903202.926 194130398330.653 208368892319.233 216408249325.943 231333821779.513 246950083829.516 262626444239.305 279298784317.645 299267130105.732 320009299956.437 340302643540.744 360858880823.878
Singapore SGP GDP (constant 2010 US$) 5768016072.1365 6237353063.2452 6708525608.16992 7382103260.42145 7153012024.53881 7713420724.21103 8498614168.12063 9561682220.48448 10855112276.7574 12356736494.7 14079544947.4716 15827345171.4304 17934843345.1033 19836406500.2647 21049919367.3175 21888061478.9966 23515915320.9016 25127390374.91 27081619804.9461 29669044703.2815 32669539808.4426 36203122100.7069 38774309407.593 42091296349.5683 45792125833.7604 45506909010.0421 46118007234.3257 51097723540.7101 56853243727.253 62628743211.1009 68779542852.0989 73379864304.359 78252059516.0596 87221916827.3286 96901498081.3798 103879285314.713 111640501036.364 120928897532.935 118274051330.973 125044067991.979 136346984801.619 134889413875.26 140169808016.352 146527601649.217 160916013825.344 172757877474.653 188314972645.788 205304999963.213 209140601456.434 209393625490.149 239809387605.427 255008196791.322 266385665325.181 279271535506.458 290269256195.074 298944012931.308 308640184767.927 322024690203.145 333096256633.744 335538884575.285
Thailand THA GDP (constant 2010 US$) 15639909036.0419 16478543840.0054 17723374970.9784 19141214978.4001 20448750635.4329 22121798201.1077 24582299297.3726 26700305861.9487 28868976863.1127 30760085349.9479 34269180219.3926 35946784675.7031 37484770747.6751 41321874196.0421 43167413801.3801 45313009193.6116 49539267956.5714 54415647584.9187 60018144735.6073 63242179335.9639 66514039416.8205 70442935769.026 74213287361.593 78357507586.9067 82864968557.6495 86715902817.9389 91514611526.6975 100225838000.266 113543961683.123 127385545129.539 141610897158.987 153730326381.099 166156945172.205 179868076575.157 194252171027.298 210026059881.659 221896616148.187 215786526060.27 199313306518.393 208426524281.418 217712440842.023 225210999429.683 239059304977.91 256245860052.212 272362038917.804 283767576325.108 297864612891.059 314054006434.033 319473632807.246 317267289651.686 341104820155.464 343970551186.432 368883637205.469 378797368588.757 382526345000.913 394514326505.528 408043089556.887 424635143108.232 442260737640.107 452674624298.251
Vietnam VNM GDP (constant 2010 US$) 22466506503.8517 23321549315.0893 23972055325.3215 24831086648.2253 26106165845.6517 28028757795.2627 29458481786.1673 31214455910.1046 33913272582.3353 36650999734.9206 39890574620.3549 43696326983.664 47777571569.0438 51672439404.9752 54651074161.6116 57259890667.8823 61146300622.5134 64933025784.1857 69037326105.9079 73800255066.9557 79362145321.3724 85351803030.4192 91307613276.9669 97817393659.7481 103355590690.416 108934619580.606 115931749697.241 123166241860.417 129629226783.14 136657571781.858 144834688912.566 154508616051.562 164104855205.203 175284081081.177 187686812137.294 200857611961.483
Australia AUS GDP (constant 2010 US$) 199140913998.197 204091098084.214 206736296993.324 219584193744.787 234907925364.002 248963655147.257 254895110718.513 270960181431.042 284767807750.202 304827789929.508 326690607759.588 339770265830.805 353063857427.948 362291969207.749 377158120785.399 382249441572.548 392140895847.669 406247880538.178 409891435901.61 426465341562.957 439405348582.527 454071680304.364 469185192521.366 458767075503.601 479784558776.375 504970031680.999 525358342396.622 538761129230.956 569704236717.02 591701505825.547 612831155634.484 610393204828.616 612909152232.478 637608817755.311 663010452660.089 688455171399.949 715157492429.37 743524483707.404 777553285175.057 817003221615.663 849137077164.435 865532704887.51 900166165695.802 927044536189.266 964640382071.844 995550062444.482 1023371077536.56 1062711818739.97 1101585323180.17 1122922963917.09 1146138465603.81 1174365063005.45 1220378598873.43 1251924137225.91 1283636811145.51 1311782440650.19 1348127369665.9 1379142531152.01 1419817385593.49 1450499018770.09
China CHN GDP (constant 2010 US$) 128048892199.897 93129959291.9319 87933307572.6285 96990438248.4551 114623299916.401 134051949255.092 148328481856.354 139769928446.975 134039361391.633 156745629206.161 186997535637.081 200199561659.327 207827164955.052 223954552958.982 229127903133.435 249107856287.759 245196862937.189 263758265459.503 293631468552.778 315921986693.273 340671773268.056 358089507138.325 390378845910.432 432423438157.802 498115217837.03 565015466424.791 615584134632.643 687345410633.443 764483402199.78 796640130188.438 827870425788.321 904554292386.94 1033222885387.26 1176672753881.19 1330073305504.23 1475768928104.54 1622202937537.15 1772042252274.01 1911075833038.71 2057495803275.45 2232179118798.37 2418247620897.73 2639121430175.81 2904037243763.17 3197740575270.47 3562110060961.01 4015244502560.5 4586648363851.38 5029291070606.01 5501980339596.26 6087163874512.21 6668538680619.32 7192934987439.48 7751549114988.98 8327160831972.09 8913503612415.53 9523968278958.46 10185617478788.5 10873123622054.6 11520043405731.2
European Union EUU GDP (constant 2010 US$) 5780235042028.46 5991832227028.19 6278612543958.5 6657435698068.86 6863638777574.84 6819262110474.35 7153294804665.88 7359116343187.28 7584142689768.57 7875756095256.19 8038850984923.71 8079211698010.03 8145127818273.85 8262474753750.51 8467810108944.6 8666855694716.28 8891001272242.04 9115706857939.68 9495696966962.61 9868327129457.33 10200913728437.5 10385383169763.7 10504391922134.3 10445037347179.1 10722047250333.8 11008669824220.2 11217054834848.4 11515878893157.2 11863506512242 12214512071886.9 12691270347971.8 12968493938366.5 13114252403594.3 13236284805056.4 13579759500210.8 13842398145422.3 14326089737271.1 14777715839582.5 14873020002933.2 14229639065703.5 14544075622068.1 14810516494583.6 14699166443888.4 14691035836236.4 14922117420350.8 15265416049095.4 15577553669650.7 16012037378199.3 16351210756244.2 16605351894524
Hong Kong SAR, China HKG GDP (constant 2010 US$) 10710206076.5829 12240845737.8866 14170468747.4491 15393048107.4845 17646902295.8002 17963607405.7869 18251632091.5552 18871719135.7391 21012478885.2928 22947085372.8223 24620618637.0583 27233283239.0006 30577400362.1453 31315870433.9544 31469951436.4046 36556760293.5319 40843263270.6062 44217281261.5531 49327380250.404 54313502511.8709 59343357335.0893 61093880248.7345 64745447451.3556 71203017860.3137 71742047109.8094 79673913367.954 90349031691.5037 98039148416.4312 100271441434.767 104112380800.136 110048821798.827 116910257330.378 124160099032.463 131654436265.828 134779687172.952 140519331643.761 147685471256.725 138997641902.071 142481906630.085 153401113670.387 154261424693.309 156817135261.342 161609918918.414 175669937521.533 188648846516.7 201915881901.268 214969441362.31 219543765617.888 214145031721.477 228637697575.04 239645793589.693 243720447901.352 251279570348.289 258221046638.21 264386829327.016 270122507356.178 280362944356.644 288346170948.938 284743319786.036
India IND GDP (constant 2010 US$) 148773240565.12 154311685268.911 158834757876.736 168355874365.044 180903353709.483 176135157184.686 176037703768.975 189814349385.377 196245125108.445 209078968136.596 219861650853.232 223473824717.617 222237341112.634 229561219659.359 232282292035.661 253535917382.898 257752482445.013 276451818260.547 292244217089.309 276935931059.835 295589841122.926 313343568872.088 324234555451.756 347867664947.465 361158776510.805 380135139299.924 398292538163.164 414086253764.644 453953579378.036 480951757294.595 507565004254.755 512929110762.338 541049915924.762 566753986666.965 604493704287.742 650281030594.288 699374141678.858 727697541481.731 772701383365.473 841052658954.873 873357417209.469 915487884378.979 950312817570.94 1025011030242.9 1106222004443.92 1193872737485.77 1290107626116.85 1388940385493.75 1431812781420.86 1544380310593.35 1675615335600.56 1763440111904.05 1859659734290.56 1978419583617.95 2125024977747.68 2294947360719.64 2484425233783.8 2659423696537.16 2822169439126.61 2940156656485.46
Japan JPN GDP (constant 2010 US$) 796213203689.476 892105430761.214 971582862679.839 1053911319915.84 1176973469391.22 1245469887052.29 1377969967687.19 1530678560697.81 1727867738579.85 1943469252349.88 1951224678930.2 2042912571322.77 2214793985890.97 2392699527043.67 2363383219489.48 2436449005911.01 2533297466281.55 2644517786331.55 2783935217065.33 2936607388958.51 3019348980540.71 3146443538203.38 3250668119166.92 3365190619321.7 3516691326549.27 3700733180401.3 3823839017637.96 4004732064596.11 4276453940507.09 4484205684579.13 4703605002006.23 4864350550626.71 4905603627978.57 4880196533166.11 4928660123402.19 5063810899975.58 5220789001962.18 5276967053208.52 5217421238318.99 5204275722617.37 5348935478913.05 5370670124202.18 5377007127019.29 5459179633303.4 5579537505147 5672306823996.86 5752853952776.5 5848016735563.7 5784066298239.42 5470777391094.18 5700098114744.41 5693518985132.88 5778642194552.57 5894230516027.13 5916317345751.67 5988669235428.84 6019926762460.57 6150456276847.65 6170335002849.18 6210698351093.34
Korea, Rep. KOR GDP (constant 2010 US$) 23312576379.0164 24929534963.7137 25900608291.1997 28236990347.7674 30912113318.9688 33174395800.4603 37153318437.8825 40526693573.7895 45862344145.3441 52540528251.9092 57822288223.4084 63919945464.1983 68531360903.1634 78741384171.9889 86231135053.1976 92991598558.0615 105286434222.184 118274550001.603 131229144544.677 142608321173.93 140261433658.126 150425024401.011 162967580397.828 184766408314.575 204262295216.753 220274138786.481 245225165834.74 276426860934.661 309564126753.238 331459268078.715 364199331304.919 403452939646.746 428461546234.945 457928878228.62 500372778015.987 548481445968.104 591760489667.638 628275380922.424 596048320923.235 664396838719.068 724596728892.538 759757057460.516 818449374136.306 844208359213.67 888085171563.224 926348700517.723 975114721518.432 1031666971895 1062750941695.99 1071175357671.91 1144066965324.49 1186233472871.4 1214733099700.09 1253175863016.38 1293308240994.23 1329638605060.43 1368821481989.69 1412071254753.18 1453125867702.21 1482760164322.84
United States USA GDP (constant 2010 US$) 3173064455312.67 3246044937784.85 3444053678989.73 3595592040865.28 3804136379235.47 4047601107506.54 4310695179494.47 4418462558981.83 4630548761812.94 4774095773429.15 4758686862017.69 4915407665248.36 5173903810307.52 5466007905251.38 5436461589211.5 5425291617496.91 5717613882945.58 5982005452007.4 6313127561081.77 6513010666258.7 6496288385251.14 6661145910444.5 6541053812613.5 6840890964615.81 7335940248613.75 7641823717333.56 7906433457818.01 8179962259764.11 8521643077473.06 8834613741240.21 9001231051205.99 8991486399057.48 9308206336157.28 9564446766193.78 9949782934155.2 10216863677305.3 10602294994392.4 11073801989751.8 11570064188534.7 12120016643700.8 12620268392851 12746261681326.2 12968262714693.8 13339312044428.3 13846057985506.4 14332499604847.4 14741688498216 15018267849838.4 14997755929007.8 14617299295193.1 14992052727000 15224554803505.2 15567038144417.2 15853795607253.8 16254258275174.8 16726935659206.4 17000895844117 17403783207186.7 17913248631409.5 18300385513295.6
World WLD GDP (constant 2010 US$) 11360367512417.1 11848770510559.1 12506867410562 13176069559333.8 14060652475568.7 14836750493399.4 15692608169311.3 16396570879404.7 17431773032862.1 18497486814845.3 19211466454121.7 20045536738321 21192907870360.6 22571560084048.7 23022076129668.7 23160922578574.3 24381353858751.5 25339949974899.5 26326226012422.3 27412767603339.1 27934458185142.1 28472898779583.2 28593570266729.7 29282980110106 30602138944871.7 31737672879089 32815011311542.5 34031757862471.7 35603712621059.1 36912028485498.7 37985981896395.1 38524952980571.2 39204482640538.8 39804753556567.4 40999376865833.3 42244359246045.5 43674128184308.8 45187917819238 46343518879203.9 47849314060120.8 49948978843416.3 50928369054151.7 52039819430454.2 53583285194606.1 55945451191090.5 58136339357011.9 60681662612082.3 63304406774695.6 64477011141383.9 63397897204734.2 66125919193271.2 68200801178161.6 69918443352833.1 71782454322508.1 73836220968446.3 75958236524952.9 77937548577611.1 80508418354625.1 82904973844065.5 84847750377759.4
Brunei Darussalam BRN Population, total 81702 85562 89481 93540 97812 102386 107274 112448 117898 123600 129529 135671 142022 148512 155072 161626 168181 174714 181205 187604 193879 200021 206065 212076 218175 224449 230915 237563 244404 251458 258721 266210 273892 281681 289454 297114 304622 311958 319144 326210 333165 340034 346782 353293 359433 365114 370263 374965 379421 383906 388646 393688 398989 404421 409769 414907 419800 424473 428962 433285
Indonesia IDN Population, total 87751068 90098394 92518377 95015297 97596733 100267062 103025426 105865571 108779924 111758563 114793178 117880144 121017314 124199687 127422211 130680727 133966941 137278058 140621730 144009845 147447836 150938232 154468229 158009246 161523347 164982451 168374287 171702763 174975954 178209150 181413402 184591903 187739786 190851175 193917462 196934260 199901228 202826446 205724592 208615169 211513823 214427417 217357793 220309469 223285676 226289470 229318262 232374245 235469762 238620563 241834215 245116206 248452413 251806402 255129004 258383256 261554226 264645886 267663435 270625568
Cambodia KHM Population, total 5722370 5872966 6028431 6183584 6331449 6467197 6585035 6685960 6779787 6880623 6996576 7139647 7302111 7449238 7533336 7524447 7404684 7196042 6957265 6770396 6693764 6749847 6919801 7169997 7447853 7714880 7960949 8198082 8435912 8691334 8975597 9289299 9623889 9970733 10317899 10656138 10982917 11298600 11600508 11886458 12155239 12405408 12637727 12856163 13066469 13273354 13477709 13679962 13883834 14093604 14312212 14541423 14780454 15026332 15274503 15521436 15766293 16009414 16249798 16486542
Lao PDR LAO Population, total 2120898 2170344 2221125 2273351 2327137 2382594 2439196 2496920 2556852 2620434 2688428 2762265 2840841 2919287 2990965 3051577 3098973 3135842 3168843 3207328 3258144 3323366 3401191 3489903 3586316 3687898 3794198 3905530 4020811 4138845 4258472 4379236 4500351 4619944 4735845 4846483 4951195 5050315 5144602 5235346 5323700 5409582 5493246 5576640 5662208 5751676 5846074 5944948 6046620 6148623 6249165 6347567 6444530 6541304 6639756 6741164 6845846 6953035 7061507 7169455
Myanmar MMR Population, total 21736942 22211624 22697667 23198241 23717788 24259359 24823940 25410060 26015248 26635849 27269069 27913750 28570097 29238168 29918461 30611095 31314341 32026742 32748784 33481396 34224313 34976462 35734272 36491800 37241527 37977086 38698482 39404335 40085651 40731426 41335199 41890197 42401684 42890002 43383428 43901598 44452206 45027233 45611220 46181077 46719701 47225120 47702171 48148902 48564484 48949924 49301050 49621475 49929642 50250367 50600818 50990615 51413698 51852451 52280807 52680726 53045226 53382581 53708395 54045420
Malaysia MYS Population, total 8156347 8417824 8692342 8973788 9253842 9526558 9790084 10046325 10297983 10549399 10804131 11062433 11324277 11592638 11871104 12162187 12468689 12790312 13122839 13460031 13798085 14134058 14471211 14819424 15192298 15598927 16043731 16522000 17022465 17528961 18029824 18519937 19002656 19484898 19977500 20487607 21017613 21562793 22114654 22661298 23194257 23709119 24208391 24698819 25190652 25690611 26201961 26720370 27236006 27735040 28208035 28650955 29068159 29468872 29866559 30270962 30684804 31105028 31528585 31949777
Philippines PHL Population, total 26269734 27161047 28077339 29012625 29958688 30909988 31864182 32823968 33795194 34786305 35803594 36849675 37923396 39022767 40144248 41285742 42446653 43629412 44838483 46079850 47357743 48672838 50023563 51408912 52827040 54275822 55755355 57263836 58795001 60340767 61895160 63454786 65020116 66593904 68180859 69784088 71401749 73030884 74672014 76325927 77991755 79672873 81365258 83051971 84710542 86326250 87888675 89405482 90901965 92414158 93966780 95570047 97212638 98871552 100513138 102113212 103663927 105173264 106651922 108116615
Singapore SGP Population, total 1646400 1702400 1750200 1795000 1841600 1886900 1934400 1977600 2012000 2042500 2074507 2112900 2152400 2193000 2229800 2262600 2293300 2325300 2353600 2383500 2413945 2532835 2646466 2681061 2732221 2735957 2733373 2774789 2846108 2930901 3047132 3135083 3230698 3313471 3419048 3524506 3670704 3796038 3927213 3958723 4027887 4138012 4175950 4114826 4166664 4265762 4401365 4588599 4839396 4987573 5076732 5183688 5312437 5399162 5469724 5535002 5607283 5612253 5638676 5703569
Thailand THA Population, total 27397207 28224187 29080938 29966865 30881138 31822660 32789130 33778799 34791409 35827092 36884536 37963278 39058603 40159582 41252324 42326312 43377271 44405904 45413080 46401754 47374472 48326274 49255900 50173924 51094868 52026901 52980094 53945881 54891520 55772169 56558186 57232465 57811021 58337773 58875269 59467274 60130186 60846582 61585103 62298571 62952642 63539196 64069087 64549866 64995299 65416189 65812536 66182067 66530984 66866839 67195028 67518382 67835957 68144501 68438730 68714511 68971331 69209858 69428524 69625582
Vietnam VNM Population, total 32670039 33666110 34683407 35721217 36779999 37858951 38958048 40072948 41193601 42307146 43404793 44484035 45548479 46603525 47657561 48718189 49785282 50861162 51959015 53095408 54281846 55522803 56814306 58148384 59512619 60896721 62293856 63701972 65120439 66550234 67988862 69436954 70883481 72300308 73651218 74910461 76068743 77133214 78115710 79035871 79910412 80742499 81534407 82301656 83062821 83832661 84617540 85419591 86243413 87092252 87967651 88871561 89802487 90753472 91714595 92677076 93638724 94596642 95540395 96462106
Australia AUS Population, total 10276477 10483000 10742000 10950000 11167000 11388000 11651000 11799000 12009000 12263000 12507000 12937000 13177000 13380000 13723000 13893000 14033000 14192000 14358000 14514000 14692000 14927000 15178000 15369000 15544000 15758000 16018400 16263900 16532200 16814400 17065100 17284000 17495000 17667000 17855000 18072000 18311000 18517000 18711000 18926000 19153000 19413000 19651400 19895400 20127400 20394800 20697900 20827600 21249200 21691700 22031750 22340024 22733465 23128129 23475686 23815995 24190907 24601860 24982688 25364307
China CHN Population, total 667070000 660330000 665770000 682335000 698355000 715185000 735400000 754550000 774510000 796025000 818315000 841105000 862030000 881940000 900350000 916395000 930685000 943455000 956165000 969005000 981235000 993885000 1008630000 1023310000 1036825000 1051040000 1066790000 1084035000 1101630000 1118650000 1135185000 1150780000 1164970000 1178440000 1191835000 1204855000 1217550000 1230075000 1241935000 1252735000 1262645000 1271850000 1280400000 1288400000 1296075000 1303720000 1311020000 1317885000 1324655000 1331260000 1337705000 1344130000 1350695000 1357380000 1364270000 1371220000 1378665000 1386395000 1392730000 1397715000
European Union EUU Population, total 356906076 359998418 363200473 366516491 369850244 373032732 376039119 378917977 381605443 384216975 386322908 388391969 390994983 393524737 395949389 398316577 400473489 402425490 404271768 406051885 407875852 409551932 410895587 411974420 412931311 413924483 415076369 416301856 417653043 419073156 420477979 421730525 422963892 424341130 425399124 426203343 426896863 427538058 428109863 428815493 429328624 429895628 430881944 432415939 434040236 435581949 436998049 438468400 439876674 440917800 441532412 440746976 441395932 442469471 443576663 444543759 445487728 446131273 446777673 447512041
Hong Kong SAR, China HKG Population, total 3075605 3168100 3305200 3420900 3504600 3597900 3629900 3722800 3802700 3863900 3959000 4045300 4123600 4241600 4377800 4461600 4518000 4583700 4667500 4929700 5063100 5183400 5264500 5345100 5397900 5456200 5524600 5580500 5627600 5686200 5704500 5752000 5800500 5901000 6035400 6156100 6435500 6489300 6543700 6606500 6665000 6714300 6744100 6730800 6783500 6813200 6857100 6916300 6957800 6972800 7024200 7071600 7150100 7178900 7229500 7291300 7336600 7391700 7451000 7507400
India IND Population, total 450547679 459642165 469077190 478825608 488848135 499123324 509631500 520400576 531513824 543084336 555189792 567868018 581087256 594770134 608802600 623102897 637630087 652408776 667499806 682995354 698952844 715384993 732239504 749428958 766833410 784360008 801975244 819682102 837468930 855334678 873277798 891273209 909307016 927403860 945601831 963922588 982365243 1000900030 1019483581 1038058156 1056575549 1075000085 1093317189 1111523144 1129623456 1147609927 1165486291 1183209472 1200669765 1217726215 1234281170 1250288729 1265782790 1280846129 1295604184 1310152403 1324509589 1338658835 1352617328 1366417754
Japan JPN Population, total 92500572 94943000 95832000 96812000 97826000 98883000 99790000 100725000 101061000 103172000 104345000 105697000 107188000 108079000 110162000 111940000 112771000 113863000 114898000 115870000 116782000 117648000 118449000 119259000 120018000 120754000 121492000 122091000 122613000 123116000 123537000 123921000 124229000 124536000 124961000 125439000 125757000 126057000 126400000 126631000 126843000 127149000 127445000 127718000 127761000 127773000 127854000 128001000 128063000 128047000 128070000 127833000 127629000 127445000 127276000 127141000 126994511 126785797 126529100 126264931
Korea, Rep. KOR Population, total 25012374 25765673 26513030 27261747 27984155 28704674 29435571 30130983 30838302 31544266 32240827 32882704 33505406 34103149 34692266 35280725 35848523 36411795 36969185 37534236 38123775 38723248 39326352 39910403 40405956 40805744 41213674 41621690 42031247 42449038 42869283 43295704 43747962 44194628 44641540 45092991 45524681 45953580 46286503 46616677 47008111 47370164 47644736 47892330 48082519 48184561 48438292 48683638 49054708 49307835 49554112 49936638 50199853 50428893 50746659 51014947 51217803 51361911 51606633 51709098
United States USA Population, total 180671000 183691000 186538000 189242000 191889000 194303000 196560000 198712000 200706000 202677000 205052000 207661000 209896000 211909000 213854000 215973000 218035000 220239000 222585000 225055000 227225000 229466000 231664000 233792000 235825000 237924000 240133000 242289000 244499000 246819000 249623000 252981000 256514000 259919000 263126000 266278000 269394000 272657000 275854000 279040000 282162411 284968955 287625193 290107933 292805298 295516599 298379912 301231207 304093966 306771529 309321666 311556874 313830990 315993715 318301008 320635163 322941311 324985539 326687501 328239523
World WLD Population, total 3031437768 3072481005 3125456669 3190564033 3256064763 3322973362 3393031785 3462460219 3532826862 3607499982 3682911028 3760508998 3836892582 3912347620 3988478320 4062864564 4135417984 4207766702 4281312777 4356746042 4432925600 4511137165 4592341186 4674266073 4755914191 4839074591 4924736801 5012555212 5101297271 5189996794 5280076280 5368065405 5452349928 5537511535 5621787188 5706689093 5789623830 5872254371 5954005533 6034491778 6114332537 6193671774 6272752973 6351882363 6431551642 6511748367 6592734537 6674203645 6756917893 6839574286 6921871603 7002860245 7085762277 7169638368 7254226881 7338964954 7424286143 7509074479 7591945270.5 7673533974
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment