Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy split Function Example

# welcome to softhunt.net
# import numpy
import numpy as np

array = [[1, 2, 3],
		[4, 5, 6],
		[7, 8, 9]]

# using numpy.split() method
softhunt = np.split(array, [3, 5, 6, 10])

print(softhunt)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #split #Function #Example
ADD COMMENT
Topic
Name
7+1 =