This function checks if a field is a subset. We define a subset as a character field that contains fewer than 20 unique values.
is_field_subset(field_name, df, column_names, column_types)
Name of the field to check.
Dataframe to check.
Set that the field is part of.
Types that belong to the column names.