text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_csv('train.csv')

df.isnull().sum()

cats = df.dtypes == 'object'
object_cols = list(cats[cats].index)
print('Categorical Columns')
print(object_cols)