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

df = pd.read_csv('../input/train.csv')
df

simple_feature_cutting_df = df.drop(['PassengerId', 'Name', 'Ticket', 'Cabin', 'Embarked'], axis=1)
simple_feature_cutting_df = simple_feature_cutting_df.dropna()
simple_feature_cutting_df = pd.get_dummies(simple_feature_cutting_df, columns=['Sex'])
simple_feature_cutting_df.index = range(0, len(simple_feature_cutting_df))
simple_feature_cutting_df