KeshavRa commited on
Commit
b22b1f7
·
verified ·
1 Parent(s): da84afb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -200,8 +200,8 @@ else:
200
  scores.append('services_score')
201
 
202
  # calcualte cumulative score
203
- total_scores = df[scores].sum(axis=1)
204
- df['total_score'] = total_scores
205
  st.table(shelters)
206
 
207
  # shelters = shelters.sort_values(by='total_score', ascending=False)
 
200
  scores.append('services_score')
201
 
202
  # calcualte cumulative score
203
+ total_scores = shelters[scores].sum(axis=1)
204
+ shelters['total_score'] = total_scores
205
  st.table(shelters)
206
 
207
  # shelters = shelters.sort_values(by='total_score', ascending=False)