You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 04-defensive_programming.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -256,7 +256,7 @@ check_sign(val)
256
256
```
257
257
258
258
```output
259
-
Value: nan is a number.
259
+
Value: nan is negative.
260
260
```
261
261
262
262
However numpy does provide the `isnan()` function for testing if a value is NaN. Add an assertion test using this which will raise and error if the value is NaN.
0 commit comments