Select all categorical columns and display them in their unique values

PHOTO EMBED

Wed Feb 03 2021 20:40:59 GMT+0000 (Coordinated Universal Time)

Saved by @fre_apples #python

for i in categoricals:
    print(i, categoricals[i].unique())

for i in categoricals:
    print(i, categoricals[i].isin(['', ' ', '0']).sum())

#check the null and 0 values per each categorical feature 
content_copyCOPY

Select all categorical columns and display them in their unique values, useful for preprocessing to display all feature to make them ordinal