Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

display array of odd rows and even columns in numpy

>>> x[:, 1::2]
array([[ 2,  4],
       [ 7,  9],
       [12, 14],
       [17, 19]])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #display #array #odd #rows #columns #numpy
ADD COMMENT
Topic
Name
3+5 =