import matplotlib.pyplot as plt
import numpy as np
sales=np.array([72,180,279,378,495,585,693,792,855,873,801,648,612,477,396])
indexes=np.arange(1,16)
plt.plot(indexes,sales,'ro',label='Projected Sales')
m,b=np.polyfit(indexes,sales,1)
plt.plot(indexes,m*indexes+b,color='blue',label='Best Fit - Projected Sales')
plt.legend()
Hello, the code I write works to draw the linear regression, but I need second-degree polynomial for the curve fitting. There is so many different solutions for it, but I'd like to have a code for second-degree plynomial, which is not so different the code I write for linear regression. I mean, I want to change my code for linear regression slightly and get the polynomial curve, I don't need a completely new code, please pay attention to that, thanks.

