# 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")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter