def check_type(x):
    ctd = nunique(x);         parts = (((ctd<=15)&(len(x)>15))|((ctd<len(x)*0.01)&(ctd<=20)&(dtypes(x)=='int'))|((dtypes(x)=='str')&(ctd<=15)))
    if dtypes(x) != 'str':
        if parts == True: return 'cat'
        else: return 'cont'
    else: 
        if parts == False: return 'str'
        else: return 'cat'