def _get_groups(group_info, language):
    """Get variables' group from `group_info`, given language.

    Args:
        group_info (pd.DataFrame): Description of groups, as defined for
            univariate distributions dashboard tabs. Default is None.
        language (str): One of ["english", "german"].

     Returns:
        list: List of groups.

    """
    raw_groups = group_info[f"group_{language}"].unique().tolist()  # noqa
    bg_var_groups = ["Background Overview", "Background Correlation"]
    groups = [group for group in raw_groups if group not in bg_var_groups]
    return groups