Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy array split

x = np.arange(8.0)
np.array_split(x, 3)
# returns [array([0.,  1.,  2.]), array([3.,  4.,  5.]), array([6.,  7.])]
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #numpy #array #split
ADD COMMENT
Topic
Name
5+6 =