def outlier_removal_nearest_cut(dataframe, colname, low_cut, high_cut):
    """Clip outliers on dataframe[colname]"""
    col = dataframe[colname]
    dataframe.loc[col.apply(lambda x: isinstance(x, (int, float)) and x <
        low_cut), colname] = low_cut
    dataframe.loc[col.apply(lambda x: isinstance(x, (int, float)) and x >
        high_cut), colname] = high_cut
    return dataframe
