text_html_output_1.png
import pandas as pd

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

df_titanic_train = pd.read_csv('/kaggle/input/titanic/train.csv')
df_titanic_test = pd.read_csv('/kaggle/input/titanic/test.csv')

df_titanic_train.drop(labels=['Cabin'], axis=1, inplace=True)
df_titanic_test.drop(labels=['Cabin'], axis=1, inplace=True)

df_titanic_train.drop(labels=['PassengerId', 'Name', 'Ticket'], axis=1, inplace=True)
df_titanic_test.drop(labels=['PassengerId', 'Name', 'Ticket'], axis=1, inplace=True)

df_titanic_train['Embarked'].mode()