def lookup(value, key):
    try:
        return value[key]
    except KeyError:
        return ""
Validates that we have good categories
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_store/shop/templatetags/satchmo_util.py/lookup--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical._validate_categories