Annual Inflation by GDP Deflator

JohnSnowLabs

Files Size Format Created Updated License Source
2 1MB csv zip 3 months ago John Snow Labs Standard License John Snow Labs World Bank National Accounts Data, ECD National Accounts Data Files.
Download

Data Files

File Description Size Last changed Download
annual-inflation-by-gdp-deflator-csv 87kB csv (87kB) , json (733kB)
annual-inflation-by-gdp-deflator_zip Compressed versions of dataset. Includes normalized CSV and JSON data with original data and datapackage.json. 120kB zip (120kB)

annual-inflation-by-gdp-deflator-csv  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
Country_Name 1 string Name of the country
ISO3166_Country_Code 2 string ISO 3166-1 alpha-2 country code
Region_Name 3 string Name of the region
Income_Group 4 string Country's income group
Special_Notes 5 string Special notes, if any.
Percent_Annual_Inflation_in_Year_1961 6 number Annual inflation value in percentage in the year 1961
Percent_Annual_Inflation_in_Year_1962 7 number Annual inflation value in percentage in the year 1962
Percent_Annual_Inflation_in_Year_1963 8 number Annual inflation value in percentage in the year 1963
Percent_Annual_Inflation_in_Year_1964 9 number Annual inflation value in percentage in the year 1964
Percent_Annual_Inflation_in_Year_1965 10 number Annual inflation value in percentage in the year 1965
Percent_Annual_Inflation_in_Year_1966 11 number Annual inflation value in percentage in the year 1966
Percent_Annual_Inflation_in_Year_1967 12 number Annual inflation value in percentage in the year 1967
Percent_Annual_Inflation_in_Year_1968 13 number Annual inflation value in percentage in the year 1968
Percent_Annual_Inflation_in_Year_1969 14 number Annual inflation value in percentage in the year 1969
Percent_Annual_Inflation_in_Year_1970 15 number Annual inflation value in percentage in the year 1970
Percent_Annual_Inflation_in_Year_1971 16 number Annual inflation value in percentage in the year 1971
Percent_Annual_Inflation_in_Year_1972 17 number Annual inflation value in percentage in the year 1972
Percent_Annual_Inflation_in_Year_1973 18 number Annual inflation value in percentage in the year 1973
Percent_Annual_Inflation_in_Year_1974 19 number Annual inflation value in percentage in the year 1974
Percent_Annual_Inflation_in_Year_1975 20 number Annual inflation value in percentage in the year 1975
Percent_Annual_Inflation_in_Year_1976 21 number Annual inflation value in percentage in the year 1976
Percent_Annual_Inflation_in_Year_1977 22 number Annual inflation value in percentage in the year 1977
Percent_Annual_Inflation_in_Year_1978 23 number Annual inflation value in percentage in the year 1978
Percent_Annual_Inflation_in_Year_1979 24 number Annual inflation value in percentage in the year 1979
Percent_Annual_Inflation_in_Year_1980 25 number Annual inflation value in percentage in the year 1980
Percent_Annual_Inflation_in_Year_1981 26 number Annual inflation value in percentage in the year 1981
Percent_Annual_Inflation_in_Year_1982 27 number Annual inflation value in percentage in the year 1982
Percent_Annual_Inflation_in_Year_1983 28 number Annual inflation value in percentage in the year 1983
Percent_Annual_Inflation_in_Year_1984 29 number Annual inflation value in percentage in the year 1984
Percent_Annual_Inflation_in_Year_1985 30 number Annual inflation value in percentage in the year 1985
Percent_Annual_Inflation_in_Year_1986 31 number Annual inflation value in percentage in the year 1986
Percent_Annual_Inflation_in_Year_1987 32 number Annual inflation value in percentage in the year 1987
Percent_Annual_Inflation_in_Year_1988 33 number Annual inflation value in percentage in the year 1988
Percent_Annual_Inflation_in_Year_1989 34 number Annual inflation value in percentage in the year 1989
Percent_Annual_Inflation_in_Year_1990 35 number Annual inflation value in percentage in the year 1990
Percent_Annual_Inflation_in_Year_1991 36 number Annual inflation value in percentage in the year 1991
Percent_Annual_Inflation_in_Year_1992 37 number Annual inflation value in percentage in the year 1992
Percent_Annual_Inflation_in_Year_1993 38 number Annual inflation value in percentage in the year 1993
Percent_Annual_Inflation_in_Year_1994 39 number Annual inflation value in percentage in the year 1994
Percent_Annual_Inflation_in_Year_1995 40 number Annual inflation value in percentage in the year 1995
Percent_Annual_Inflation_in_Year_1996 41 number Annual inflation value in percentage in the year 1996
Percent_Annual_Inflation_in_Year_1997 42 number Annual inflation value in percentage in the year 1997
Percent_Annual_Inflation_in_Year_1998 43 number Annual inflation value in percentage in the year 1998
Percent_Annual_Inflation_in_Year_1999 44 number Annual inflation value in percentage in the year 1999
Percent_Annual_Inflation_in_Year_2000 45 number Annual inflation value in percentage in the year 2000
Percent_Annual_Inflation_in_Year_2001 46 number Annual inflation value in percentage in the year 2001
Percent_Annual_Inflation_in_Year_2002 47 number Annual inflation value in percentage in the year 2002
Percent_Annual_Inflation_in_Year_2003 48 number Annual inflation value in percentage in the year 2003
Percent_Annual_Inflation_in_Year_2004 49 number Annual inflation value in percentage in the year 2004
Percent_Annual_Inflation_in_Year_2005 50 number Annual inflation value in percentage in the year 2005
Percent_Annual_Inflation_in_Year_2006 51 number Annual inflation value in percentage in the year 2006
Percent_Annual_Inflation_in_Year_2007 52 number Annual inflation value in percentage in the year 2007
Percent_Annual_Inflation_in_Year_2008 53 number Annual inflation value in percentage in the year 2008
Percent_Annual_Inflation_in_Year_2009 54 number Annual inflation value in percentage in the year 2009
Percent_Annual_Inflation_in_Year_2010 55 number Annual inflation value in percentage in the year 2010
Percent_Annual_Inflation_in_Year_2011 56 number Annual inflation value in percentage in the year 2011
Percent_Annual_Inflation_in_Year_2012 57 number Annual inflation value in percentage in the year 2012
Percent_Annual_Inflation_in_Year_2013 58 number Annual inflation value in percentage in the year 2013
Percent_Annual_Inflation_in_Year_2014 59 number Annual inflation value in percentage in the year 2014
Percent_Annual_Inflation_in_Year_2015 60 number Annual inflation value in percentage in the year 2015
Percent_Annual_Inflation_in_Year_2016 61 number Annual inflation value in percentage in the year 2016

Import into your tool

Data-cli or just data is the program to get and post your data with the datahub.
Use data with the datahub.io almost like you use git with the github. Here are installation instructions.

data get https://datahub.io/JohnSnowLabs/annual-inflation-by-gdp-deflator
tree JohnSnowLabs/annual-inflation-by-gdp-deflator
# Get a list of dataset's resources
curl -L -s https://datahub.io/JohnSnowLabs/annual-inflation-by-gdp-deflator/datapackage.json | grep path

# Get resources

curl -L https://datahub.io/JohnSnowLabs/annual-inflation-by-gdp-deflator/r/0.csv

curl -L https://datahub.io/JohnSnowLabs/annual-inflation-by-gdp-deflator/r/1.zip

If you are using R here's how to get the data you want quickly loaded:

install.packages("jsonlite", repos="https://cran.rstudio.com/")
library("jsonlite")

json_file <- 'https://datahub.io/JohnSnowLabs/annual-inflation-by-gdp-deflator/datapackage.json'
json_data <- fromJSON(paste(readLines(json_file), collapse=""))

# get list of all resources:
print(json_data$resources$name)

# print all tabular data(if exists any)
for(i in 1:length(json_data$resources$datahub$type)){
  if(json_data$resources$datahub$type[i]=='derived/csv'){
    path_to_file = json_data$resources$path[i]
    data <- read.csv(url(path_to_file))
    print(data)
  }
}

Note: You might need to run the script with root permissions if you are running on Linux machine

Install the Frictionless Data data package library and the pandas itself:

pip install datapackage
pip install pandas

Now you can use the datapackage in the Pandas:

import datapackage
import pandas as pd

data_url = 'https://datahub.io/JohnSnowLabs/annual-inflation-by-gdp-deflator/datapackage.json'

# to load Data Package into storage
package = datapackage.Package(data_url)

# to load only tabular data
resources = package.resources
for resource in resources:
    if resource.tabular:
        data = pd.read_csv(resource.descriptor['path'])
        print (data)

For Python, first install the `datapackage` library (all the datasets on DataHub are Data Packages):

pip install datapackage

To get Data Package into your Python environment, run following code:

from datapackage import Package

package = Package('https://datahub.io/JohnSnowLabs/annual-inflation-by-gdp-deflator/datapackage.json')

# print list of all resources:
print(package.resource_names)

# print processed tabular data (if exists any)
for resource in package.resources:
    if resource.descriptor['datahub']['type'] == 'derived/csv':
        print(resource.read())

If you are using JavaScript, please, follow instructions below:

Install data.js module using npm:

  $ npm install data.js

Once the package is installed, use the following code snippet:

const {Dataset} = require('data.js')

const path = 'https://datahub.io/JohnSnowLabs/annual-inflation-by-gdp-deflator/datapackage.json'

// We're using self-invoking function here as we want to use async-await syntax:
;(async () => {
  const dataset = await Dataset.load(path)
  // get list of all resources:
  for (const id in dataset.resources) {
    console.log(dataset.resources[id]._descriptor.name)
  }
  // get all tabular data(if exists any)
  for (const id in dataset.resources) {
    if (dataset.resources[id]._descriptor.format === "csv") {
      const file = dataset.resources[id]
      // Get a raw stream
      const stream = await file.stream()
      // entire file as a buffer (be careful with large files!)
      const buffer = await file.buffer
      // print data
      stream.pipe(process.stdout)
    }
  }
})()
Datapackage.json