def drop_category_exeeding_limit(df, var_name, category_limit):
    """ Drops category if its # of unique variables exceed the limit.
        INPUT:
            df:
                A dataframe of independent features and one dependent y feature
            var_name:
                string, the column name of the dependent y variable in the dataframe
        OUTPUT:
            df:
                A dataframe with one less feature if it exeeds the limit.
    """
    if len(df[var_name].unique()) > category_limit:
        df.drop(var_name, axis=1)
    return df
