From a8226fad762cadc4cb5ebd4533e4718c350c862e Mon Sep 17 00:00:00 2001 From: Dmitry Ustalov Date: Sat, 6 Jul 2024 21:08:11 +0200 Subject: [PATCH] Fix formatting --- Tutorial.ipynb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Tutorial.ipynb b/Tutorial.ipynb index 81744fa..5a44915 100644 --- a/Tutorial.ipynb +++ b/Tutorial.ipynb @@ -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", @@ -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\"])" ] }, { @@ -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()" ] }, @@ -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()" ] }, @@ -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()" ] }, @@ -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()" ] },