Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
romankr committed Jan 21, 2024
1 parent eb8975c commit f9abfed
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions analytics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"metadata": {},
"outputs": [],
"source": [
"counter = 0\n",
"total = 0\n",
"win_rate = []\n",
"wins = 0\n",
"\n",
Expand All @@ -100,8 +100,8 @@
" if match is not None:\n",
" if result.winner == match['Winner']:\n",
" wins += 1\n",
" counter += 1\n",
" win_rate.append(float(wins) / float(counter))"
" total += 1\n",
" win_rate.append(float(wins) / float(total))"
]
},
{
Expand All @@ -122,14 +122,6 @@
"df = pd.DataFrame({ \"win_rate\": win_rate }, index = range(1, len(win_rate) + 1))\n",
"plot = df.plot(title=\"win_rate\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "051df979",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit f9abfed

Please sign in to comment.