From d8037f78ab65ccd323dcb73bbe3014efcbf7731f Mon Sep 17 00:00:00 2001 From: Vini Salazar <17276653+vinisalazar@users.noreply.github.com> Date: Fri, 17 Nov 2023 17:00:51 +1100 Subject: [PATCH] Recreate data variable along with numpy import Ensures that both "numpy" and "data" are available as local variables. --- episodes/07-cond.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/episodes/07-cond.md b/episodes/07-cond.md index c49189ea0..8f46e1571 100644 --- a/episodes/07-cond.md +++ b/episodes/07-cond.md @@ -158,10 +158,11 @@ Now that we've seen how conditionals work, we can use them to check for the suspicious features we saw in our inflammation data. We are about to use functions provided by the `numpy` module again. Therefore, if you're working in a new Python session, make sure to load the -module with: +module and data with: ```python import numpy +data = numpy.loadtxt(fname='inflammation-01.csv', delimiter=',') ``` From the first couple of plots, we saw that maximum daily inflammation exhibits