DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
numpy convert 1d to 2d
a = np.arange(6).reshape((3, 2)) >>> a array([[0, 1], [2, 3], [4, 5]])
Source by numpy.org #
PREVIOUS
NEXT
Tagged:
#numpy
#convert
ADD COMMENT
Topic
COMMENT
Name
4+8 =
Submit