From 2d856d4e5bf2f1c4eaaffbbd692de0d7f8255175 Mon Sep 17 00:00:00 2001 From: Yash Maurya <59893283+yashmaurya01@users.noreply.github.com> Date: Tue, 17 Oct 2023 23:11:44 -0400 Subject: [PATCH] Update Tutorial 1 - Training and Evaluation of Logistic Regression on Encrypted Data.ipynb Fixed axis attribute error in data.drop() from 'columns' to axis=1 TypeError: DataFrame.drop() takes from 1 to 2 positional arguments but 3 were given --- ...nd Evaluation of Logistic Regression on Encrypted Data.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/Tutorial 1 - Training and Evaluation of Logistic Regression on Encrypted Data.ipynb b/tutorials/Tutorial 1 - Training and Evaluation of Logistic Regression on Encrypted Data.ipynb index 2743a20a..ba36d6c0 100644 --- a/tutorials/Tutorial 1 - Training and Evaluation of Logistic Regression on Encrypted Data.ipynb +++ b/tutorials/Tutorial 1 - Training and Evaluation of Logistic Regression on Encrypted Data.ipynb @@ -94,7 +94,7 @@ " data = grouped.apply(lambda x: x.sample(grouped.size().min(), random_state=73).reset_index(drop=True))\n", " # extract labels\n", " y = torch.tensor(data[\"TenYearCHD\"].values).float().unsqueeze(1)\n", - " data = data.drop(\"TenYearCHD\", 'columns')\n", + " data = data.drop(\"TenYearCHD\", axis=1)\n", " # standardize data\n", " data = (data - data.mean()) / data.std()\n", " x = torch.tensor(data.values).float()\n",