You can use numpy's argmax to determine the goal column ordering and reorder your matrix using the argmax results as column indices: >>> z = numpy.array([[ ...
確定! 回上一頁