File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ We can check for this inside the `for` loop we wrote with the following conditio
139139if numpy.max(data, axis=0)[0] == 0 and numpy.max(data, axis=0)[20] == 20:
140140 print('Suspicious looking maxima!')
141141~~~
142- {: .python}
143142
144143We also saw a different problem in the third dataset;
145144the minima per day were all zero (looks like a healthy person snuck into our study).
@@ -149,15 +148,13 @@ We can also check for this with an `elif` condition:
149148elif numpy.sum(numpy.min(data, axis=0)) == 0:
150149 print('Minima add up to zero!')
151150~~~
152- {: .python}
153151
154152And if neither of these conditions are true, we can use ` else ` to give the all-clear:
155153
156154~~~
157155else:
158156 print('Seems OK!')
159157~~~
160- {: .python}
161158
162159Let's test that out:
163160
You can’t perform that action at this time.
0 commit comments