np.unique(arr) 返回哪些值是唯一的

numpy——常见函数

np.sum(arr, axis=0 or 1) axis=0时对列求和,axis=1时对行求和

numpy——常见函数

np.max() np.min()等与上同理

arr.reshape(newshape) 或np.reshape(arr, newshape)

numpy——常见函数

arr.T 转置

numpy——常见函数

arr.astype(np.float) 设置类型

numpy——常见函数

相关文章: