If this two column are same data type , you can just union
a = predictons_lr.select('prediction')
b = predictions_nb.select('prediction')
new_df = a.union(b)
4
solved How to create a dataframe from two others dataframe?
If this two column are same data type , you can just union
a = predictons_lr.select('prediction')
b = predictions_nb.select('prediction')
new_df = a.union(b)
4
solved How to create a dataframe from two others dataframe?