text_plain_output_1.png
cols_with_missing = [col for col in X_train.columns if X_train[col].isnull().any()]
cols_with_missing

X_train_full.shape

X_valid_full.shape

X_valid_full.columns

cols_with_missing = [col for col in X_train_full.columns if X_train_full[col].isnull().any()]
cols_with_missing

X_train_full.drop(cols_with_missing, axis=1, inplace=True)
X_valid_full.drop(cols_with_missing, axis=1, inplace=True)