text_plain_output_1.png
import pandas as pd

train = pd.read_csv('../input/30-days-of-ml/train.csv')
test = pd.read_csv('../input/30-days-of-ml/test.csv')
sample_submission = pd.read_csv('../input/30-days-of-ml/sample_submission.csv')

train.dtypes

cat_cols = [col for col in train.columns if train[col].dtype == 'object']
cat_cols

test.isna().sum()[test.isna().sum() > 0]

for col in cat_cols:
    print('***' + col + '***')
    print('Number of unique cat:', test[col].nunique())
    print(test[col].value_counts())