How do i split a numpy array by input(), however if there is not enough values to evenly split, just split with the remaining values
Example for clarity:
Arr = np.array([1, 2, 4, 7, 9])
if the user inputs 3 split the array by 3 but if there are not enough values to evenly split, just put the remaining values in one split
#Output
[[1, 2, 4], [7, 9]]