Fix Q.49
Before: `threshold=np.nan`
After : `threshold=float("inf")`
`np.nan` may fail in latest version.
This commit is contained in:
@@ -604,7 +604,7 @@ How to print all the values of an array? (★★☆)
|
||||
hint: np.set_printoptions
|
||||
|
||||
< a49
|
||||
np.set_printoptions(threshold=np.nan)
|
||||
np.set_printoptions(threshold=float("inf"))
|
||||
Z = np.zeros((16,16))
|
||||
print(Z)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user