def resample_df(data, period, agg_dict):
    """
    Resample a DataFrame() and run functions on columns specified in a dict.

    Parameters:
        - df: DataFrame() to be resampled.
        - period: The period to use for resampling the data.
        - agg_dict: A dictionary that specifies the operations to be done
                    for each column after resampling.
    
    Returns:
        The resampled DataFrame()
    """
    return (
        data
        .resample(period)
        .agg({
                col: agg_dict[col]
                for col in data.columns
                if col in agg_dict
        })
    )