nastasiasnk commited on
Commit
4281a78
·
verified ·
1 Parent(s): 34833f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -108,11 +108,10 @@ 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
  if any(domain):
113
  for item in domain:
114
- livability.loc[subdomainsAccessibility[key] >= threshold, domain] += max_livability
115
- livability.loc[subdomainsAccessibility[key] < threshold, domain] += livability_score
116
 
117
 
118
  return livability
 
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, item] += max_livability
114
+ livability.loc[subdomainsAccessibility[key] < threshold, item] += livability_score
115
 
116
 
117
  return livability