Update app.py
Browse files
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.
|
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 |
|