Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Get the first 4 numbers of the innermost arrays using numpy

a4 = np.random.randint(10, size=(2, 3, 4, 5))
a4[:, :, :, :4]
 
PREVIOUS NEXT
Tagged: #Get #numbers #innermost #arrays #numpy
ADD COMMENT
Topic
Name
9+1 =