Skip to content

Instantly share code, notes, and snippets.

@erykml
Created August 30, 2022 20:43
Show Gist options
  • Save erykml/94ac75c9c0c318e04718baab8c9661e7 to your computer and use it in GitHub Desktop.
Save erykml/94ac75c9c0c318e04718baab8c9661e7 to your computer and use it in GitHub Desktop.
plotline_X = np.arange(X.min(), X.max()).reshape(-1, 1)
fit_df = pd.DataFrame(
index = plotline_X.flatten(),
data={"linear_regression": lr.predict(plotline_X)}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment