Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -171,10 +171,10 @@ if uploaded_file is not None:
|
|
171 |
other_colleague = other_colleague.sort_values(by = 'Other_colleague_score', ascending = False).reset_index(drop = True)
|
172 |
|
173 |
def assign_strength_weakness(df):
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
|
179 |
# Apply the function to each DataFrame
|
180 |
boss = assign_strength_weakness(boss)
|
|
|
171 |
other_colleague = other_colleague.sort_values(by = 'Other_colleague_score', ascending = False).reset_index(drop = True)
|
172 |
|
173 |
def assign_strength_weakness(df):
|
174 |
+
df['Strength/Weakness'] = np.nan
|
175 |
+
df.loc[df.index.isin([0, 1, 2]) & df['Score'].notna(), 'Strength/Weakness'] = 'S'
|
176 |
+
df.loc[df.index.isin([3, 4, 5]) & df['Score'].notna(), 'Strength/Weakness'] = 'W'
|
177 |
+
return df
|
178 |
|
179 |
# Apply the function to each DataFrame
|
180 |
boss = assign_strength_weakness(boss)
|