NumPy - Array Operations
Consider this code snippet:
Why might the result's dtype not be what you expect if you change
import numpy as np arr = np.array([1, 2, 3], dtype=np.int8) result = arr + 1.5
Why might the result's dtype not be what you expect if you change
arr to np.int16?