Giter Site home page Giter Site logo

worldbank_data_visualization_python's Introduction

WorldBank_Data_Visualization_Python

World Bank Data visualization using python and SQLite Database

Hello All!

This is my first project using python(or any language) that I have uploaded to github.(First ever project on github as well!!) I made this project after a cousrse specialization on python by University of Michigan on Coursera as part of its Capstone Project. It was my stepping stone to learning python.

I have worked on Data Visualization on World Bank Data Indicators. You can find the csv file here: https://datacatalog.worldbank.org/dataset/world-development-indicators. YOU WILL NEED WDIData.csv from the zip file of csv downloaded from this location. SO, COPY THIS FILE AND ALL THE FILES in repository IN YOUR DIRECTORY.

WDIData.csv file has data from 1960 to 2019 for 264 different regions such as Arab World, India, the US, etc for 1429 different indicators such as GDP, population etc.

I decided to make a database from this csv file so that data can be properly managed. I made an SQLite file for regions and indicators separately. So it had two tables for regions and indicators in which I stored regions and indicators giving them Primary Keys.

So, FIRST STEP is to run indicators.py. This would create indicator.sqlite database from WDIData.csv

For data ranging from 1960 to 2019, I made another SQLite file. I pondered a lot about how to store this data. This was the first time I am actually making a database, so suggestions are welcomed. I made different tables for each year's data. So this file has a total of 60 tables. Each table has foreign keys for Regions and Indicators and data for that respective year only for which data is available in the csv file. I am not sure this is the most efficient way to store data.

So, 2nd STEP is to run yearwise.py. This would generate yearwise.sqlite database.

For, visualization I have made 'choose.py'. You can choose any number of regions for any ONE particular indicator. It will make data.js file which will have array of data for regions and indicator selected. This javascript file is used in data.htm file which uses googlejsapi to visualize data.

So, 3rd STEP is to run choose.py. This would prompt you to select no. of regions and one indicator. This would also make data.js and data.htm file. You can open data.htm file in browser and visualize data.

Any suggestions are most welcome.

worldbank_data_visualization_python's People

Contributors

jeetandhariya avatar

Watchers

 avatar

Forkers

henaandhariya

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.