From bb117f8f8d88e41bd8fc1ce2933c359432df3d64 Mon Sep 17 00:00:00 2001 From: Sniggdhaa <64954465+Sniggdhaa@users.noreply.github.com> Date: Fri, 1 Jan 2021 23:08:26 +0530 Subject: [PATCH] Update 3. NumPy exercises.ipynb Fixed an error in the solution: Under the 'Boolean Arrays' section, there's an exercise to get all NEGATIVE elements from a numpy array. The solution shows the 'mask' as X <=0 whereas to get the negative elements the mask should be X<0. --- 3. NumPy exercises.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3. NumPy exercises.ipynb b/3. NumPy exercises.ipynb index deff2a9..e6341c2 100644 --- a/3. NumPy exercises.ipynb +++ b/3. NumPy exercises.ipynb @@ -1366,7 +1366,7 @@ "source": [ "X = np.array([-1, 2, 0, -4, 5, 6, 0, 0, -9, 10])\n", "\n", - "mask = X <= 0\n", + "mask = X < 0\n", "X[mask]" ] },