xxxxxxxxxx
#how to split a 2d array in python
import numpy as np
array1 = np.array([[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]])
# splitting the array into three indexes
new_array1 = np.array_split(array1, 3)
print('The arrays splitted into 3 sections are:', new_array1)