I have an array and a sub-array, like following:
import numpy as np
total_array = np.arange(10)
sub_array = np.array([0, 1, 2, 3])
I was wondering how to get the rest_array = total_array - sub_array = np.array([4, 5, 6, 7, 8, 9])?
Any simple ideas? Thanks in advance.