I have an array that looks like (simplified version):
[14 14 14 14 14 13 13 13 13 13 2 2 2 2 2 2 2 2 2]
What I need to do is to identify the index where it changes. Like index 5 is 13 and so on. I do not know how to do this. Any kind of help is welcomed!! :)
I've tried it with np.unique, but the output of this sorts the numbers ascending, so I lose where the numbers actually change.