text_plain_output_2.png application_vnd.jupyter.stderr_output_1.png image_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

train_df = pd.read_csv('/kaggle/input/titanic/train.csv')
train_df.head().T

test_df = pd.read_csv('/kaggle/input/titanic/test.csv')
test_df.head().T

train_df.head().T

train_df = train_df.drop(['PassengerId', 'Name', 'Ticket'], axis=1)
test_df = test_df.drop(['Name', 'Ticket'], axis=1)

train_df.info()