# Split the dataset 2 parts that categorical and numerical cat_col=list(df1.select_dtypes(include="object").columns) num_col=list(df1.select_dtypes(exclude="object").columns) print("Categorical Features:",cat_col,sep="\n\n") print("") print("Numerical Features:",num_col,sep="\n\n")