Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy indexing

>>> x = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
>>> x[1:7:2]
array([1, 3, 5])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #numpy #indexing
ADD COMMENT
Topic
Name
9+2 =