Spaces:
Runtime error
Runtime error
as-cle-bert
commited on
Commit
•
c6ab1ca
1
Parent(s):
410360b
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def modelA_button():
|
|
39 |
df = pd.read_csv("models.csv")
|
40 |
df.loc[df["MODEL"] == choice["ModelA"], "MATCHES_WON"] += 1
|
41 |
df.loc[df["MODEL"] == choice["ModelA"], "WINNING_RATE"] = df.loc[df["MODEL"] == choice["ModelA"], "MATCHES_WON"]/df.loc[df["MODEL"] == choice["ModelA"], "MATCHES_PLAYED"]
|
42 |
-
df.to_csv("models.csv")
|
43 |
rewrite_csv_ordered_by_winning_rate("models.csv")
|
44 |
|
45 |
def modelB_button():
|
|
|
39 |
df = pd.read_csv("models.csv")
|
40 |
df.loc[df["MODEL"] == choice["ModelA"], "MATCHES_WON"] += 1
|
41 |
df.loc[df["MODEL"] == choice["ModelA"], "WINNING_RATE"] = df.loc[df["MODEL"] == choice["ModelA"], "MATCHES_WON"]/df.loc[df["MODEL"] == choice["ModelA"], "MATCHES_PLAYED"]
|
42 |
+
df.to_csv("models.csv", index=False)
|
43 |
rewrite_csv_ordered_by_winning_rate("models.csv")
|
44 |
|
45 |
def modelB_button():
|