Posts by Marcelo Gosling • 1 point
1 post
-
0
votes7
answers7922
viewsA: Convert an array of floats to integer
Numpy arrays have an associated type, and the default is float. To create an ints array, you will invariably have to create an array new. On the other hand, this is quite easy: b = np.array( a,…