text_html_output_1.png
from sklearn.linear_model import LinearRegression

import matplotlib.pyplot as plt

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

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

X = df[['OverallQual']].values
y = df['SalePrice'].values
slr = LinearRegression()
slr.fit(X, y)

df_test = pd.read_csv('../input/test.csv')

X_test = df_test[['OverallQual']].values
y_test_pred = slr.predict(X_test)
y_test_pred