python对矩阵中的某一列取整,有没有什么函数可以直接求,而不是写for循环啊
import numpy as np
arr=np.array(([1.0,2.1],[2.3,3.4]), np.float64)
print(np.trunc(arr[:, 1]))