nastasiasnk commited on
Commit
196214b
1 Parent(s): 681efb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -108,13 +108,11 @@ def test(input_json):
108
  livability_score = remap(subdomainsAccessibility[key], 0, threshold, 0, max_livability)
109
  livability.loc[subdomainsAccessibility[key] >= threshold, key] = max_livability
110
  livability.loc[subdomainsAccessibility[key] < threshold, key] = livability_score
111
-
112
- """
113
- if any(domain):
114
  for item in domain:
115
  livability.loc[subdomainsAccessibility[key] >= threshold, domain] += max_livability
116
  livability.loc[subdomainsAccessibility[key] < threshold, domain] += livability_score
117
- """
118
  return livability
119
 
120
 
 
108
  livability_score = remap(subdomainsAccessibility[key], 0, threshold, 0, max_livability)
109
  livability.loc[subdomainsAccessibility[key] >= threshold, key] = max_livability
110
  livability.loc[subdomainsAccessibility[key] < threshold, key] = livability_score
111
+ #if any(domain):
 
 
112
  for item in domain:
113
  livability.loc[subdomainsAccessibility[key] >= threshold, domain] += max_livability
114
  livability.loc[subdomainsAccessibility[key] < threshold, domain] += livability_score
115
+
116
  return livability
117
 
118