text_plain_output_1.png
import pandas as pd #for structuring the data

train_data = pd.read_csv('train.csv')
test_data = pd.read_csv('test.csv')

dataTrain = train_data.drop(['passenger_ID', 'name', 'ticket', 'cabin'], axis=1)
passengerid = test_data['passenger_ID']
dataTest = test_data.drop(['passenger_ID', 'name', 'ticket', 'cabin'], axis=1)

dataTrain.head()