TypeError Traceback (most recent call last)
<ipython-input-192-4f772c6e1b0b> in <module>
1 X1 = data['TV'].values.reshape(-1,1)
----> 2 y_pred = reg.predict(X1)
3 plt.figure()
4 plt.scatter(data['TV'],data['sales'],c='yellow')
5 plt.plot(data['TV'],y_pred,c='blue',linewidth=2)
TypeError: 'tuple' object is not callable