nastasiasnk commited on
Commit
b9a4efc
·
verified ·
1 Parent(s): 79bcc66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -124,6 +124,7 @@ df_lu_filtered = df_lu[lu_columns].loc[mask_connected]
124
 
125
  df_lu_filtered.columns = [col.replace('lu+', '') for col in df_lu_filtered.columns]
126
  df_lu_filtered.columns = [col.replace('ASSETS+', '') for col in df_lu_filtered.columns]
 
127
 
128
  df_lu_filtered = df_lu_filtered.astype(str)
129
  df_lu_filtered_dict = df_lu_filtered.to_dict('index')
@@ -237,10 +238,10 @@ def test(input_json):
237
  from imports_utils import accessibilityToLivability
238
 
239
 
240
- """
241
 
242
- LivabilitySubdomainsWeights = landusesToSubdomains(df_dm,df_landuses_filtered,landuseMapperDict,subdomainsUnique)
243
 
 
 
244
  WorkplacesNumber = FindWorkplacesNumber(df_dm,attributeMapperDict,LivabilitySubdomainsWeights,subdomainsUnique)
245
 
246
  # prepare an input weights dataframe for the parameter LivabilitySubdomainsInputs
 
124
 
125
  df_lu_filtered.columns = [col.replace('lu+', '') for col in df_lu_filtered.columns]
126
  df_lu_filtered.columns = [col.replace('ASSETS+', '') for col in df_lu_filtered.columns]
127
+ df_lu_filtered = df_lu_filtered.T.groupby(level=0).sum().T
128
 
129
  df_lu_filtered = df_lu_filtered.astype(str)
130
  df_lu_filtered_dict = df_lu_filtered.to_dict('index')
 
238
  from imports_utils import accessibilityToLivability
239
 
240
 
 
241
 
 
242
 
243
+ LivabilitySubdomainsWeights = landusesToSubdomains(df_dm,df_lu_filtered,landuseMapperDict,subdomainsUnique)
244
+ """
245
  WorkplacesNumber = FindWorkplacesNumber(df_dm,attributeMapperDict,LivabilitySubdomainsWeights,subdomainsUnique)
246
 
247
  # prepare an input weights dataframe for the parameter LivabilitySubdomainsInputs