WhereToGoNum by myke, 2016-02-15 2016-02-15 1.1
Test many countries on many parameters
In [14]:
# all imports
import csv
import numpy as np
In [5]:
# all data
tsvdata = "wheretogonum.tsv"
In [30]:
# read data
with open(tsvdata) as tsv:
tsvr = csv.reader(tsv, delimiter="\t")
tab = list(tsvr)
head = np.array(tab[:2])
data = np.array(tab[3:])
mul = np.array(tab[2])
del tab
In [31]:
# show data
print (head)
print (mul)
print (data)
In [39]:
# columns
PLACE = 3
EST = 4
FIRST = 5
LAST = len(mul)
CODE = 2
print ("we study data in columns from {} to {}".format(FIRST, LAST-1))
In [48]:
# print info, pre-calculated in Google Calc
res1 = data[:,CODE:CODE+3]
res1
Out[48]:
In [ ]: