Answers for "convert a numpy array from float to int"

1

np float to int

int_array = float_array.astype(int)
Posted by: Guest on December-23-2020

Code answers related to "convert a numpy array from float to int"

Python Answers by Framework

Browse Popular Code Answers by Language