Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import numpy as np arr = np.array([1.1, 2.1, 3.1]) newarr = arr.astype(int) print(newarr) print(newarr.dtype)
[1 2 3]
int64