text_html_output_1.png
from sklearn.linear_model import LinearRegression

dataset.columns

df = dataset.drop(columns=['date', 'id'])
df1 = df.dropna()

df.columns

X = df.drop(columns=['price'])[:10]
y = df['price'][:10]

model = LinearRegression()
model.fit(X, y)

model.score(X, y)

model.intercept_

model.coef_

X_test = df.drop(columns=['price'])[:10]
X_test

y_hat = model.predict(X_test)

y_hat