Thank you in advance for taking a look at my post.
I have a 2d np.array called actions with shape (2,x) which contains ints
I have another 1d np.array keys with elements of the same type to the first dimension of actions: actions[0]. I want to remove from actions all array elements which are in keys. I tried diff = actions[:, not actions[0] == kids_keys]but it returns a 3d array of (1,2,x) shape.
How can I get a (2,x) diff array back ?
For example:
actions = [[121122, 211122, 221122, ... 455544, 545544][0, 0.35, 0.75, ... 1, -0.25]]
keys = [211122 221122]
# The operation I am looking for:
actions - keys = [[121122, ... 455544, 545544][0, ... 1, -0.25]]
The error: The dimmentions of the diff array become (2,1,80) for some reason I dont know!

not actions[0] == kids_keys?