Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def test(input_json):
|
|
118 |
|
119 |
for domain in UniqueSubdomainsList:
|
120 |
for key, value_list in SubdomainAttributeDict.items():
|
121 |
-
sqm_per_empl = float(SubdomainAttributeDict[domain]['sqmPerEmpl'])
|
122 |
if key in destinationWeights.columns and key == domain:
|
123 |
if sqm_per_empl > 0:
|
124 |
df_LivabilitySubdomainsWorkplaces['jobs'] += (round(destinationWeights[key] / sqm_per_empl,2)).fillna(0)
|
|
|
118 |
|
119 |
for domain in UniqueSubdomainsList:
|
120 |
for key, value_list in SubdomainAttributeDict.items():
|
121 |
+
sqm_per_empl = float(SubdomainAttributeDict[domain]['sqmPerEmpl'][0])
|
122 |
if key in destinationWeights.columns and key == domain:
|
123 |
if sqm_per_empl > 0:
|
124 |
df_LivabilitySubdomainsWorkplaces['jobs'] += (round(destinationWeights[key] / sqm_per_empl,2)).fillna(0)
|