Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

python select only first elements of a 2d array

>>> [i[0] for i in a]
[4.0, 3.0, 3.5]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #select #elements #array
ADD COMMENT
Topic
Name
2+7 =