Reputation:
I have an array like this
import numpy as np
x = np.array([1, 2, 3, 99, 99, 3, 2, 1])
I want to split it in three pieces
x1 = array([1, 2, 3])
x2 = array([99, 99])
x3 = array([3, 2, 1])
What is the best way to do this?
Upvotes: 0
Views: 1534