Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -373,7 +373,7 @@ def get_final_score_i2v(df, selected_columns):
|
|
373 |
df.insert(1, 'Selected Score', selected_score)
|
374 |
# df.loc[df[9:].isnull().any(axis=1), ['Total Score', 'I2V Score']] = 'N.A.'
|
375 |
mask = df.iloc[:, 5:-5].isnull().any(axis=1)
|
376 |
-
df.loc[mask, ['Total Score', 'I2V Score']] = np.nan
|
377 |
# df.fillna('N.A.', inplace=True)
|
378 |
return df
|
379 |
|
|
|
373 |
df.insert(1, 'Selected Score', selected_score)
|
374 |
# df.loc[df[9:].isnull().any(axis=1), ['Total Score', 'I2V Score']] = 'N.A.'
|
375 |
mask = df.iloc[:, 5:-5].isnull().any(axis=1)
|
376 |
+
df.loc[mask, ['Total Score', 'I2V Score','Selected Score' ]] = np.nan
|
377 |
# df.fillna('N.A.', inplace=True)
|
378 |
return df
|
379 |
|