NumPy - Array Data Types
Identify the error in this code snippet:
import numpy as np arr = np.array([1, 0, 1]) bool_arr = arr.astype(Boolean)
import numpy as np arr = np.array([1, 0, 1]) bool_arr = arr.astype(Boolean)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions