示例#1
0
def searchcountry(query):
    array = getdata(sql(query))
    #print(tabulate(array[0], headers=["Country Code", "Table Name", "Long Name"]))
    return array[0]


#query = "United"
示例#2
0
def scatterplottotal(info, figure):
	sequel = sql(info)
	data = getdata(sequel)
	p = points(data)
	plot(data[0][0][2], data[1][0][2], p, figure)

#info = ["SL.UEM.TOTL.ZS", "FP.CPI.TOTL.ZG"]
示例#3
0
def scatterplotyear(info, figure):
	sequel = sql(info)
	data = getdata(sequel)
	p = points(data)
	plot(info[0], data[2][0][0], data[3][0][0], p, figure)

#info = [2014, "NY.GDP.PCAP.KD", "FP.CPI.TOTL.ZG"]
示例#4
0
def scatterplotcountry(info, figure):
    sequel = sql(info)
    data = getdata(sequel)
    p = points(data)
    plot(info[0], data[0][0][2], data[1][0][2], p, figure)


#info = ["USA", "SL.UEM.TOTL.ZS", "FP.CPI.TOTL.ZG"]
示例#5
0
def linegraph(info, figure):
    plot(info, getdata(sql(info)), figure)


#info = [1960, 2014, "USA", "NY.GDP.MKTP.KD"]
示例#6
0
def searchcountry(query):
	array = getdata(sql(query))
	#print(tabulate(array[0], headers=["Country Code", "Table Name", "Long Name"]))
	return array[0]

#query = "United"
示例#7
0
def linegraph(info, figure):
	plot(info, getdata(sql(info)), figure)

#info = [1960, 2014, "USA", "NY.GDP.MKTP.KD"]
示例#8
0
def searchstat(query):
	array = getdata(sql(query))
	#print(tabulate(array[0], headers=["Series Code", "Topic", "Indicator Name"]))
	return array[0]

#query = "GDP"