I have a numpy array A and B.
A = [ 1, 2, 5, 9.8, 55, 3]
B = [ 3, 4]
Now, how to remove A[3] & A[4] that is whatever indices array B is having and then put them at the start of array A. So, I want my output to be
A = [9.8, 55, 1, 2, 5, 3]
Note : Both A and B are numpy arrays.
Any help is highly appreciated.