application_vnd.jupyter.stderr_output_1.png
from sklearn.tree import DecisionTreeClassifier

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

X = d.loc[:, ['Class1', 'Class2', 'Male', 'Age', 'SibSp', 'Parch', 'Fare']]
y = d['Survived']

thisclf = DecisionTreeClassifier()

thisclf.fit(X, y)