def find_nearest(dataframes, x, npoints=5):
    """
        Function that will take a list of dataframes, and
        return slices of the dataframes containing a specified
        number of closest points.
    """
    nearest = [
        df.loc[(df["Frequency"] - x).abs().argsort()[:npoints]] for df in dataframes
    ]
    return nearest