I have the following numpy array:
[['CLU20']
['CLZ20']
['CLH21']]
I also have another array:
['CLU20' 'CLZ20' 'CLH21' 'CLM21' 'CLU21' 'CLZ21' 'CLH22' 'CLM22' 'CLU22']
I need to replace each "x" element of the first array with the element following the same "x" element in the second array.
This is the expected output
[['CLZ20']
['CLH21']
['CLM21']]
I could do this with a loop using np.where to get the index of every "x" element in the second array, but I guess there's a better way to do this.