Overview

The following data contains records collected on different countries and geographic locations from 1980 - 2013 from the World Bank. Included is different data about urban development, agriculture and rural development, health, and infrastructure.

https://ndb.nal.usda.gov/

Explore Structure




Index Type Example Value
0 dict { }
... ... ...
Key Type Example Value Comment
"Country" str "Canada"
"Data" dict { } Based on the nature of the data, some of the numbers that are reported are very small. For example a field reported as 0.15 is 0.15 %, not 15 %.
"Year" int 1980
Key Type Example Value Comment
"Arable Land Percent" float 4.87974390527 Percent of land area
"Arable Land" float 1.82782057091 Hectacres per person
"Rural Population" int 5918004 Value of rural population
"Agricultural Land Percent" float 7.3572250979 Percent of land area
"Rural Population Growth" float 0.833711883207 Annual Percent
"Surface Area" float 9984670.0 Square kilometers
"Agricultural Land" float 669030.0 Square kilometers
"Land Area" float 9093510.0 Square kilometers
Key Type Example Value Comment
"Urban Population Percent" float 75.623 Percent of total population
"Population Density" float 2.66970619706 People per square kilometer of land area
"Urban Population Percent Growth" float 1.05057823382
Key Type Example Value Comment
"Life Expectancy at Birth, Total" float 74.8663414634 Years
"Total Population" float 24277000.0
"Life Expectancy at Birth, Male" float 71.32 Years
"Population Growth" float 0.997669360129 Annual Percent
"Life Expectancy at Birth, Female" float 78.59 Years
"Birth Rate" float 15.4 Crude, per 1000 People
"Death Rate" float 7.0 Crude, per 100 People
"Fertility Rate" float 1.754 Total, Births per woman
Key Type Example Value Comment
"Infrastructure" dict { }
"Health" dict { }
"Rural Development" dict { }
"Urban Development" dict { }
Key Type Example Value Comment
"Telephone Lines" float 9595000.0
"Mobile Cellular Subscriptions" float 0.0
"Telephone Lines per 100 People" float 39.5623509248
"Mobile Cellular Subscriptions per 100 People" float 0.0

Downloads

Download all of the following files.

Usage

This library has 3 functions you can use.
import global_development
list_of_report = global_development.get_reports()
list_of_report = global_development.get_reports_by_year(1990)
list_of_report = global_development.get_reports_by_country("Afghanistan")
Additionally, some of the functions can return a sample of the Big Data using an extra argument. If you use this sampled Big Data, it may be much faster. When you are sure your code is correct, you can remove the argument to use the full dataset.
import global_development
# These may be slow!
list_of_report = global_development.get_reports(test=True)
list_of_report = global_development.get_reports_by_year(1990, test=True)
list_of_report = global_development.get_reports_by_country("Afghanistan", test=True)

Documentation

 global_development.get_reports(test=False)

Returns global development reports from the dataset.

 global_development.get_reports_by_year(year, test=False)

Returns global development reports for a specified year.

 global_development.get_reports_by_country(country, test=False)

Returns global development reports for a specified country.