Vineedhar commited on
Commit
4d9396f
·
verified ·
1 Parent(s): 6d02524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- 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)
 
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)