DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
np array to tuple
>>> arr = numpy.array(((2,2),(2,-2))) >>> tuple(map(tuple, arr)) ((2, 2), (2, -2))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#np
#array
#tuple
ADD COMMENT
Topic
COMMENT
Name
7+2 =
Submit