how to convert ndarray of type int to type float code example Example: np float to int int_array = float_array.astype(int)