Linear Regression, Polynomial Regression, Scikit Learn, Machine Learning, Machine Learning Python.
import matplotlib.pyplot as plt plt.scatter(df['x'][:74], df['y'][:74], c='g') plt.scatter(df['x'][75:], df['y'][75:], c='b') plt.scatter(df['x'][75:], predict_y, c='r') plt.savefig('polynomial_regression.png') plt.show() Now predicted (red) values looks good compared to actual (blue) values and we