From 5e13ca3b5e06814dc14cab37f06636f6761acb44 Mon Sep 17 00:00:00 2001 From: ltcptgeneral <35508619+ltcptgeneral@users.noreply.github.com> Date: Wed, 20 Mar 2019 22:15:31 -0500 Subject: [PATCH] Update test.py --- data analysis/test.py | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/data analysis/test.py b/data analysis/test.py index f6970a23..6abe9d88 100644 --- a/data analysis/test.py +++ b/data analysis/test.py @@ -29,8 +29,10 @@ quant_keys = [] list_teams = ["2022", "16", "2451"] out = [] -temp = [] +#temp = [] var = [] +measured_vars_total = [] +team_out = {} for i in range(len(full)): for j in range(len(full[i])): @@ -41,21 +43,30 @@ for i in range(len(full)): if full[i][j].get(key).get('teamDBRef')[5:] in list_teams: var = [] - + measured_vars = [] for k in range(len(list(full[i][j].get(key).keys()))): individual_keys = list(full[i][j].get(key).keys()) #print(individual_keys) - + measured_vars.append(individual_keys[k]) var.append(full[i][j].get(key).get(individual_keys[k])) - temp.append(var) - - out.append(var) + team_out[full[i][j].get(key).get('teamDBRef')] = var - -print(quant_keys) -print(out) + measured_vars_total.append(measured_vars) + + #temp.append(var) + + out.append(var) + +print(quant_keys) +print(measured_vars_total) +print(team_out) + +temp = [] + +#for i in range(len(measured_vars)): + #for j in range(len) #for k in range(len(list(full[i][j].get(key).keys()))):