Update app.py
Browse files
app.py
CHANGED
@@ -210,8 +210,8 @@ def handler(file: IO[bytes], algorithm: str, filtered: bool, truncated: bool, se
|
|
210 |
df_wins = df_wins.reindex(labels=index, columns=index, fill_value=0, copy=False)
|
211 |
|
212 |
df_ties = pd.pivot_table(df[df['winner'] == 'tie'],
|
213 |
-
index='left', columns='right', values='winner',
|
214 |
-
fill_value=0)
|
215 |
df_ties = df_ties.reindex(labels=index, columns=index, fill_value=0, copy=False)
|
216 |
|
217 |
wins = df_wins.to_numpy(dtype=np.int64)
|
|
|
210 |
df_wins = df_wins.reindex(labels=index, columns=index, fill_value=0, copy=False)
|
211 |
|
212 |
df_ties = pd.pivot_table(df[df['winner'] == 'tie'],
|
213 |
+
index='left', columns='right', values='winner',
|
214 |
+
aggfunc='count', fill_value=0)
|
215 |
df_ties = df_ties.reindex(labels=index, columns=index, fill_value=0, copy=False)
|
216 |
|
217 |
wins = df_wins.to_numpy(dtype=np.int64)
|