Answers for "how to change axis of numpy array creation 1d"

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

Code answers related to "how to change axis of numpy array creation 1d"

Python Answers by Framework

Browse Popular Code Answers by Language