dot. df.T.dot(df) # same as # df.T @ df c1 c2 c3 c4 c5 c1 1 1 1 1 0 c2 1 2 1 2 0 c3 1 1 1 1 0 c4 1 2 1 2 0 c5 0 0 0 0 0. You can use np.fill_diagonal to ...
確定! 回上一頁