I applied my logistic regression function and I have a "probability" column which type is VectorUDT. I wouldlike to take the first element of it and make a new column with DoubleType in order to save it to csv.
Is there any way to do that ?
I applied my logistic regression function and I have a "probability" column which type is VectorUDT. I wouldlike to take the first element of it and make a new column with DoubleType in order to save it to csv.
Is there any way to do that ?