import matplotlib.mlab as mlab
regions = mlab.contiguous_regions(ser_orig == manual_mode)
for i, (start, end) in enumerate(regions):
    pass
Finding contiguous, non-unique slices in Pandas series without iterating