I\'ve got an ndarray in python with a dtype of float64. I\'d like to convert the array to be an array of integers. How should I do thi
ndarray
dtype
float64
There's also a really useful discussion about converting the array in place, In-place type conversion of a NumPy array. If you're concerned about copying your array (which is whatastype() does) definitely check out the link.
astype()