def drop_peaks(dataframe,data,cutoff):
    """
    Filters out the peaks larger than a cut-off value in a dataseries

    Parameters
    ----------
    dataframe : pd.DataFrame
        dataframe from which the peaks need to be removed
    data : str
        the name of the column to use for the removal of peak values
    cutoff : int
        cut off value to use for the removing of peaks; values with an
        absolute value larger than this cut off will be removed from the data

    Returns
    -------
    pd.DataFrame
        dataframe with the peaks removed
    """
    dataframe = dataframe.drop(dataframe[abs(dataframe[data]) > cutoff].index)

    return dataframe