dfName.select_dtypes(include=['object']).columns.tolist()
nominal_attr = df.select_dtypes(include='category').columns
how to select pandas dataframe with categorical datatype