text_html_output_1.png
import pandas as pd # data processing

train_data = pd.read_csv('/kaggle/input/titanic/train.csv')
test_data = pd.read_csv('/kaggle/input/titanic/test.csv')

train_data.isna().sum()

train_data = train_data.drop(labels=['Cabin'], axis='columns')
test_data = test_data.drop(labels=['Cabin'], axis='columns')

test_data.isna().sum()