Split array

PHOTO EMBED

Mon Jan 24 2022 00:28:23 GMT+0000 (UTC)

Saved by @ask4med #undefined

import numpy as np
​
arr = np.array([[1, 2], [3, 4], [5, 6], [7, 8], [9, 10], [11, 12]])
​
newarr = np.array_split(arr, 3)
​
print(newarr)
​
content_copyCOPY

https://www.w3schools.com/python/numpy/trypython.asp?filename