Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy flatten along two axes

>>> arr = numpy.zeros((50,100,25))
>>> arr.shape
# (50, 100, 25)

>>> new_arr = arr.reshape(5000,25)
>>> new_arr.shape   
# (5000, 25)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #flatten #axes
ADD COMMENT
Topic
Name
9+1 =