Answers for "python numpy array change axis"

0

python numpy array change axis

>>> x = np.array([[1,2,3]])
>>> np.swapaxes(x,0,1)
array([[1],
       [2],
       [3]])
Posted by: Guest on November-03-2020

Python Answers by Framework

Browse Popular Code Answers by Language