def _keep_only_summer(df, summer_months):
    """
    Keep only the summer period.

    Parameters
    ----------
    df : DataFrame
        It should have a DateTime Index.
    summer_months : tuple(int, int)

    Returns
    -------
    DataFrame
    """
    return df.loc[df.index.month.isin(summer_months)].copy()