DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python numpy array change axis
>>> x = np.array([[1,2,3]]) >>> np.swapaxes(x,0,1) array([[1], [2], [3]])
Source by numpy.org #
PREVIOUS
NEXT
Tagged:
#python
#numpy
#array
#change
#axis
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit