def get_units(df):
    """Return the units of the variables in the dataframe as a dictionary"""
    units = {}
    for i, name in enumerate(df['Tunnusluku']):
        units[name] = df.loc[i, 'Yksikkö']
    return units