Spaces:
Running
Running
Update app.py
Browse files
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[
|
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)
|