codes on line 15 do not work
reg.predict(new_data) works fine, but the subsequent code on line 15 to add the predicted values back to the data frame does not. thanks.
Thanks. I looked at the solution being linked, but still can't figure out the codes. My code: reg.predict(new_data) works, but the subsequent one to add the predicted values back to the dataframe does not.
new_data['Predicted_GPA'] = reg.predict(new_data)
Can you please help modify the above code? Thanks much!