I used this to find out all the columns whose dtype == 'object'
print([x for x in df.columns if df[x].dtypes == 'object'])