Answers for "Python NumPy split Function Example"

0

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)
Posted by: Guest on April-24-2022

Python Answers by Framework

Browse Popular Code Answers by Language