text_plain_output_1.png
from sklearn.tree import DecisionTreeRegressor

import pandas as pd

import pandas as pd
main_file_path = '../input/train.csv'
data = pd.read_csv(main_file_path)

y = data.SalePrice

predicators = ['YearBuilt', 'YrSold', 'TotalBsmtSF']

X = data[predicators]

from sklearn.tree import DecisionTreeRegressor
housing_model = DecisionTreeRegressor()
housing_model.fit(X, y)