Menu
×
×
Correct!
Exercise:Insert the correct method to change the data type to integer.
arr = np.array([1.1, 2.1, 3.1])
newarr = arr.astype('i')
arr = np.array([1.1, 2.1, 3.1])
newarr = arr.astype(int)
Not CorrectClick here to try again. Correct!Next ❯arr = np.array([1.1, 2.1, 3.1]) newarr = arr. |