NumPy - Array Data Types
What will be the output of this code?
import numpy as np arr = np.array([0, 1, 2, 3]) print(arr.astype(bool))
import numpy as np arr = np.array([0, 1, 2, 3]) print(arr.astype(bool))
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions