numpy——常见函数

np.unique(arr) 返回哪些值是唯一的 np.sum(arr, axis=0 or 1) axis=0时对列求和,axis=1时对行求和 np.max() np.min()等与上同理 arr.reshape(newshape) 或np.reshape(arr, newshape) arr.T 转置 arr.astype(np.float) 设置类型
相关文章
相关标签/搜索