We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Country Name 2005 2006 2007 2008 2009 | |
Afghanistan 46.6 46.9 47.2 47.5 47.9 | |
Albania 76.1 76.3 76.5 76.6 76.8 | |
Algeria 71.6 71.9 72.2 72.4 72.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(WDI) | |
library(ggplot2) | |
#Grab GNI per capita data for Chile, Hungary and Uruguay | |
dat = WDI(indicator='NY.GNP.PCAP.CD', country=c('CL','HU','UY'), start=1960, end=2012) | |
#a quick plot with legend, title and lable | |
ggplot(dat, aes(year, NY.GNP.PCAP.CD, color=country)) + geom_line() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "Grabbing World Bank Data with the wbdata module and plotting it" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wbdata | |
import pandas | |
import matplotlib.pyplot as plt | |
#set up the countries I want | |
countries = ["CL","UY","HU"] | |
#set up the indicator I want (just build up the dict if you want more than one) | |
indicators = {'NY.GNP.PCAP.CD':'GNI per Capita'} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"page": "1", | |
"pages": "1", | |
"per_page": "50", | |
"total": "28" | |
}, | |
[ | |
{ | |
"id": "11", |
NewerOlder