Giter Club home page Giter Club logo

pandas_worldbank_gdp's Introduction

Pandas+Seaborn tutorial on World bank GDP data for central and eastern Europe

Project analysis the gross domestic product (GDP) data for 10 central and eastern European countries. The analysis was prepared based on the World Bank Data, particularly the dataset World Development Indicatiors was utilized. This set contains many different economic development indicators you can choose from. For simplicity, I focused on four of them: GDP per capita ( US$), GDP per capita growth (annual %), GDP growth (annual %), GDP (current US$).

Data cleaning, manipulation and data transformation was done with use of Pandas - easy-to-use data structures and data analysis tools for python. Additionally, there are many visualizations, where some of them were prepared with matplotlib but regression plots and bar plots were created with seaborn library.

This project will introduce the basic Pandas concept like: data frames, data transformations with apply function, reshaping and pivot tables etc.

I choose pandas and seaborn because you can easily pass pandas data frame to seaborn and plot data from interesting columns or rows.

Sample plots:

GDP per capita (current US$) Regression plots for GDP

This short youtube video presents what type of visualization is generated:

World Bank Pandas Plot

Project description

In order to be practical and choose the interesting subject. I challenge myself and try to answer the question: How far in economic development eastern Europe countries are relative to developed countries like Germany and France?

This led to analyzing four GDP factors:

  • GDP per capita ( US$)
  • GDP per capita growth (annual %)
  • GDP growth (annual %)
  • GDP (current US$)

For further analysis, the 10 countries were chosen:

  • Poland
  • Germany
  • Belarus
  • The Czech Republic
  • The Slovak Republic
  • Hungary
  • Estonia
  • France
  • UK
  • Ukraine

What will you learn?

This project is composed in such a way to teach you data analysis pipeline. You will start with reading CSV file, clean the data, transform data to more appropriate structure and finally visualize interesting columns or rows from the data frame.

You will learn:

  • How to read CVS files into Pandas Data Frame
  • How to clean the data, remove missing values, remove unnecessary columns, convert dates etc.
  • How to create pivot table in Pandas
  • How to create plots based on pandas data frame
  • How to create regression plots in seaborn (sns.lmplot)
  • How to create bar plot witch stacked columns

Project structure

The project contains two files, first contains raw CSV data taken from World Bank website. The second file is python script with all the pandas and seaborn code:

  • GDP_Eastern_Europe.csv - data file, generated from World Bank Development Indicators
  • gdp_pandas_woldbank.py - main file with analysis and plots

Grab the code or run project in online IDE

pandas_worldbank_gdp's People

Contributors

ksopyla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.