Horje
np float to int Code Example
np float to int
int_array = float_array.astype(int)
Source: www.kite.com
np convert to int
>>> x = np.array([[1.0, 2.3], [1.3, 2.9]])
>>> x
array([[ 1. ,  2.3],
       [ 1.3,  2.9]])
>>> x.astype(int)
array([[1, 2],
       [1, 2]])




Python

Related
how to open a app with python Code Example how to open a app with python Code Example
python fiscal year prior Code Example python fiscal year prior Code Example
minimum and max value in all columns pandas Code Example minimum and max value in all columns pandas Code Example
torch save state dict Code Example torch save state dict Code Example
python roll dice 100 times Code Example python roll dice 100 times Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7