Can I save prediction value in same csv file as a another column using panda python
if you want this column in the same dataframe just do

data['pred'] = pred1
data.to_csv('data1.csv')


The first line automatically adds a column called 'pred' to the dataframe with values coming from pred1.

Hope it helps. Good luck!