Skip to content

Instantly share code, notes, and snippets.

@Pratik-Shukla-22
Created October 11, 2022 14:46
Show Gist options
  • Save Pratik-Shukla-22/360eda15d831d5459426b67569c9d68c to your computer and use it in GitHub Desktop.
Save Pratik-Shukla-22/360eda15d831d5459426b67569c9d68c to your computer and use it in GitHub Desktop.
#Plot the regression line for complete data:
plt.scatter(data[["ENGINESIZE"]],data[["CO2EMISSIONS"]])
plt.plot(data[["ENGINESIZE"]],predicted_data,color="red")
plt.xlabel("Engine_Size")
plt.ylabel("Emission")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment