NumPy - Array Data Types
Identify the error in this code snippet:
import numpy as np arr = np.array([1000, 2000], dtype='int8') print(arr)
import numpy as np arr = np.array([1000, 2000], dtype='int8') print(arr)
int8 which can only hold -128 to 127, but values 1000 and 2000 are much larger.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions