In your problem, the value error came due to more number of values got assigned to the data frame, which is accepting only one value in one column.
In this case, the value on the right side:
results['predictedY'] = predictedY
is assigning 3 values into a dataframe column that allows only one value. This is the reason you are getting this ‘value error’.
To solve this problem you can try this:
results[[‘Predicition1’, ‘Prediction2’, ‘Prediction3’]] = predictedY
You need to initialize the result dataframe first to assign values in columns. Then the above code will solve the remaining problem.
Hope this answer helps.