I have an array of response variables which I have got using regression analysis by using further code.
SalePrice_baseline = reg2.predict(test)
The output looks like,
array([[ 103612.29783843],
[ 95608.74582384],
[ 178230.07228516],
...,
[ 172559.98073767],
[ 121881.65675305],
[ 218179.82985471]])
I have an existing test csv file of all the input variables as test.csv. I want to add this array as a new column.
How do I do that?
Thank you.