def stitch(series, method='mean'):
    """
    Stitch the regions with overlapping wavelength
    
    Parameters
    ----------
    series: pandas.Series object
    
    """
    if method == 'mean':
        return series.groupby(level=0, axis=0).mean()
