dustalov commited on
Commit
d6fb3c3
1 Parent(s): e29868a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -231,7 +231,7 @@ def handler(file: BinaryIO, algorithm: str, filtered: bool, truncated: bool, see
231
 
232
  df_result['rank'] = df_result['score'].rank(na_option='bottom', ascending=False).astype(int)
233
 
234
- df_result.fillna(np.NINF, inplace=True)
235
  df_result.sort_values(by=['rank', 'score'], ascending=[True, False], inplace=True)
236
  df_result.reset_index(inplace=True)
237
 
 
231
 
232
  df_result['rank'] = df_result['score'].rank(na_option='bottom', ascending=False).astype(int)
233
 
234
+ df_result.fillna(-np.inf, inplace=True)
235
  df_result.sort_values(by=['rank', 'score'], ascending=[True, False], inplace=True)
236
  df_result.reset_index(inplace=True)
237