Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dustalov committed Jul 6, 2024
1 parent 3e95c03 commit a8226fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"source": [
"df_food = pd.read_csv(\"food.csv\", dtype=str)\n",
"\n",
"df_food['winner'] = df_food[\"winner\"].map({\n",
"df_food[\"winner\"] = df_food[\"winner\"].map({\n",
" \"left\": evalica.Winner.X,\n",
" \"right\": evalica.Winner.Y,\n",
" \"tie\": evalica.Winner.Draw,\n",
Expand All @@ -50,7 +50,7 @@
"metadata": {},
"outputs": [],
"source": [
"matrices = evalica.matrices(df_food['left'], df_food['right'], df_food['winner'])"
"matrices = evalica.matrices(df_food[\"left\"], df_food[\"right\"], df_food[\"winner\"])"
]
},
{
Expand Down Expand Up @@ -80,7 +80,7 @@
"metadata": {},
"outputs": [],
"source": [
"bt_result = evalica.bradley_terry(df_food['left'], df_food['right'], df_food['winner'])\n",
"bt_result = evalica.bradley_terry(df_food[\"left\"], df_food[\"right\"], df_food[\"winner\"])\n",
"bt_result.scores.sort_values(ascending=False).to_frame()"
]
},
Expand All @@ -91,7 +91,7 @@
"metadata": {},
"outputs": [],
"source": [
"n_result = evalica.newman(df_food['left'], df_food['right'], df_food['winner'])\n",
"n_result = evalica.newman(df_food[\"left\"], df_food[\"right\"], df_food[\"winner\"])\n",
"n_result.scores.sort_values(ascending=False).to_frame()"
]
},
Expand All @@ -102,7 +102,7 @@
"metadata": {},
"outputs": [],
"source": [
"eigen_result = evalica.eigen(df_food['left'], df_food['right'], df_food['winner'])\n",
"eigen_result = evalica.eigen(df_food[\"left\"], df_food[\"right\"], df_food[\"winner\"])\n",
"eigen_result.scores.sort_values(ascending=False).to_frame()"
]
},
Expand All @@ -113,7 +113,7 @@
"metadata": {},
"outputs": [],
"source": [
"elo_result = evalica.elo(df_food['left'], df_food['right'], df_food['winner'])\n",
"elo_result = evalica.elo(df_food[\"left\"], df_food[\"right\"], df_food[\"winner\"])\n",
"elo_result.scores.sort_values(ascending=False).to_frame()"
]
},
Expand Down

0 comments on commit a8226fa

Please sign in to comment.