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) 設置類型
相關文章
相關標籤/搜索