I have an array as below. arr = np.array([\'horse\', \'horse\', \'horse\', \'deer\', \'deer\', \'horse\', \'cat\', \'deer\'])
Need the indexes only if the adjacent va