Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Update app.py
Browse files
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,
|
115 |
-
livability.loc[subdomainsAccessibility[key] < threshold,
|
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
|