Comparison of World Bank Development Indicators of Turkey with Other Countries Using Plotly

SALOME SONYA LOMSADZE
2 min readFeb 24, 2021

--

Photo by Svetlana Gumerova on Unsplash

In this study, I will use Worldbank’s World Development Indicators (WDI) open data source. Worldbank presents the World Development Indicators in the form of time series.

The World Development Indicator is tied to a separate source. Apart from that, 80 different data sources are available. By specifying our source code as 2, we can access many different indicators.

The wbdata module has multi-functional functions and at the same time, it is very convenient and easy to use. If you would like to examine it in more detail, please refer to this resource.

You can find country codes by search_country command and for indicator codes searching keyword with search_indicator.

Not the names of these indicators, but their IDs are needed. I will use the get_dataframe command to extract the data we are interested in and create a new DF table.

Indicators and IDs

  • Inflation, consumer prices (annual%): FP.CPI.TOTL.ZG
  • Carbon emissions: EN.ATM.CO2E.PP.GD.KD
  • Enrollment in primary school: SE.PRM.ENRR
  • Adolescent fertility rate: SP.ADO.TFRT
  • GDP per capita growth: NY.GDP.PCAP.KD.ZG
  • Population growth: SP.POP.GROW
  • Total unemployment: SL.UEM.TOTL.ZS

Creating Indicator Plotting Function with Plotly

plot_indicator: Plot with Plotly time series according to specific countries, indicators, and time range.

country_code (list): A list of country codes.

start, end (Int): starting DateTime and ending DateTime.

There are a few points I want to talk about before I start visualizing. The table created with get_dataframe () is multi-indexed. Even if you remove the multiple indexes, a list array will be in the ‘value’ column: [‘date’, ‘country’, ‘values’]. At this stage, we have to use list comprehensions. We will open a new column called ‘vals’ and transfer our values. The rest depends entirely on a little Plotly knowledge :).

  • Inflation, consumer prices (annual%):
#Call function plot_indicator([‘TUR’,’CHN’,’ARB’,’GBR’,’DEU’],’FP.CPI.TOTL.ZG’,1960,2020)
  • Carbon emissions
#Call function plot_indicator([‘TUR’,’CHN’,’ARB’,’GBR’,’DEU’],’EN.ATM.CO2E.PP.GD.KD’,2000,2020)
  • Enrollment in primary school
  • Adolescent fertility rate
  • GDP per capita growth
  • Population Growth

Total Unemployment

BONUS

Life Expectancy

GDP vs. Life exp for Newly Industrialized Countries

The following ten countries are included in the “newly industrialized countries” classification. The economies of these countries have not yet reached the status of a developed country, but have surpassed their developing counterparts in macroeconomic terms. These countries:

  • Brazil
  • China
  • India
  • Indonesia
  • Malaysia
  • Mexican
  • Philippines
  • South Africa
  • Thailand
  • Turkey

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

SALOME SONYA LOMSADZE
SALOME SONYA LOMSADZE

Written by SALOME SONYA LOMSADZE

Sr. Customer Analytics , BI Developer, Experienced in SQL, Python, Qlik, B.Sc in Chemistry at Bogazici University https://github.com/sonyalomsadze

No responses yet

Write a response