cols = train.drop(columns=['AUTO_F', 'CAR_OWNER' ]).columns num_cols = train._get_numeric_data().columns cat = list(set(cols) - set(num_cols))
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