def rename_and_subset_cols(df, dict_rename, list_cols, include=True):
    """
    Method to rename and subset certain columns from a DataFrame.

    Parameters
    ----------
    df : pd.DataFrame
        DataFrame with several columns
    dict_rename : dict(str:str)
        Dictionary with a dictionary where the keys are the original columnnames and the values are the new column names
    list_cols : list(str)
        List of columns to keep/drop
    include : bool
        Boolean value to indicate if the columns from list_cols should be kept or dropped. Default 'true' to keep.

    Returns
    -------
    pd.DataFrame
    """

    df = df.rename(columns=dict_rename)
    if include:
        df = df[list_cols]
    else:
        df = df.drop(list_cols, axis=1)

    return df