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

train = pd.read_csv('../input/train-dataset/train.csv')
train.shape

train.drop(columns=['Id'], inplace=True)

missing_cols = train.isna().sum()
missing_cols = missing_cols[missing_cols != 0]
missing_cols.sort_values(ascending=False)

train.drop(columns=['PoolQC', 'MiscFeature', 'Alley', 'Fence'], inplace=True)

missing_cols = train.isna().sum()
missing_cols = missing_cols[missing_cols != 0]
missing_cols.sort_values(ascending=False)

train.info()