cat_names = ['workclass', 'education', 'marital-status', 'relationship', 'race']
cont_names = ['age', 'salary', 'square-footage-house']
# and then you just indicate the datatypes to the TabularList function
data = TabularList.from_df(cat_names=cat_names, cont_names=cont_names)