text_html_output_1.png
import pandas as pd

import statsmodels.api as sm

raw_data = pd.read_csv('../input/housedata/data.csv')

raw_data.describe(include='all').T

x1 = raw_data.drop(['price', 'date', 'street', 'city', 'statezip', 'country'], axis=1)
y = raw_data['price']
x = sm.add_constant(x1)
results = sm.OLS(y, x).fit()
results.summary()

raw_data.isnull().sum()

zero_price = raw_data[raw_data['price'] == 0]
zero_price.describe().T