Python - How to find index where elements change value NumPy?

Python - How to find index where elements change value NumPy?