ynhe commited on
Commit
2f05323
1 Parent(s): fde1167

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def get_normalized_df(df):
92
  # final_score = df.drop('name', axis=1).sum(axis=1)
93
  # df.insert(1, 'Overall Score', final_score)
94
  normalize_df = df.copy().fillna(0.0)
95
- for column in normalize_df.columns[2:]:
96
  min_val = NORMALIZE_DIC[column]['Min']
97
  max_val = NORMALIZE_DIC[column]['Max']
98
  normalize_df[column] = (normalize_df[column] - min_val) / (max_val - min_val)
 
92
  # final_score = df.drop('name', axis=1).sum(axis=1)
93
  # df.insert(1, 'Overall Score', final_score)
94
  normalize_df = df.copy().fillna(0.0)
95
+ for column in normalize_df.columns[1:-1]:
96
  min_val = NORMALIZE_DIC[column]['Min']
97
  max_val = NORMALIZE_DIC[column]['Max']
98
  normalize_df[column] = (normalize_df[column] - min_val) / (max_val - min_val)