From eb89e27926472e3f0659372ce75bfe0135b578a6 Mon Sep 17 00:00:00 2001 From: gorilla076 Date: Sun, 2 Jun 2024 11:32:51 -0700 Subject: [PATCH] Fix diff check. --- .../Exercise 05b \342\200\224 Beyond the exercise.ipynb" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/chapter-01/Exercise 05b \342\200\224 Beyond the exercise.ipynb" "b/chapter-01/Exercise 05b \342\200\224 Beyond the exercise.ipynb" index f5eecbb..a35d7d6 100644 --- "a/chapter-01/Exercise 05b \342\200\224 Beyond the exercise.ipynb" +++ "b/chapter-01/Exercise 05b \342\200\224 Beyond the exercise.ipynb" @@ -84,7 +84,7 @@ ], "source": [ "# by default, the \"diff\" method compares with the previous element\n", - "s[s.diff() > 2]" + "s[s.diff().abs() > 2]" ] }, {