text_html_output_1.png
from sklearn import linear_model

import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('../input/housedata/output.csv')

corr = df.corr()

x = df[['bathrooms', 'bedrooms', 'sqft_above', 'sqft_living']]
y = df['price']
regr = linear_model.LinearRegression()
regr.fit(x.values, y)
print('Intercept :', regr.intercept_)
print('Coefficient :', regr.coef_)
print(x)