how to take the numpy float values as integer values code example Example: np float to int int_array = float_array.astype(int)