def get_emissions_info(df, feature_1, feature_2):
    """Get CO2 emissions data as absolute and relative numbers as well
    as per dwelling (mean).

    Parameters
    ----------

    df : pandas.DataFrame
        Dataframe from which to retrieve emission data.
        Needs to have columns named CO2_EMISSIONS_CURRENT
        and CO2_EMISS_CURR_PER_FLOOR_AREA.

    feature_1: str
        Emission feature, ideally "CO2_EMISSIONS_CURRENT"
        or "CO2_EMISS_CURR_PER_FLOOR_AREA" (y-axis).

    feature_2: str
        Feature by which to plot emissions (x-axis).

    Return
    ----------

    emissions_dict : dict
        Dictionary holding data on emissions (absolute, relative and mean)."""

    # Total emissions
    total_emissions = df["CO2_EMISSIONS_CURRENT"].sum()
    total_emissions_by_area = df["CO2_EMISS_CURR_PER_FLOOR_AREA"].sum()
    total = total_emissions = df[feature_1].sum()

    # Get absolute, relative and mean emissions
    emissions = df.groupby(feature_2)[feature_1]
    emissions_rel = emissions.sum() / total * 100
    emissions_abs = emissions.sum()
    emissions_mean = emissions.mean()
    emissions_by_dwelling = emissions_abs / df[feature_2].value_counts()

    # Set up emissions dictionary
    emissions_dict = {
        "total emissions": total_emissions,
        "total emissions by area": total_emissions_by_area,
        "total": total,
        "relative emissions": emissions_rel,
        "absolute emissions": emissions_abs,
        "mean emissions": emissions_mean,
        "emisisons by dwelling": emissions_by_dwelling,
    }

    return emissions_dict