I have a pyspark dataframe which has one Column with vector values and one column with constant numerical values. Say for example
A | B
1 | [2,4,5]
5 | [6,5,3]
I want to multiple the vector column with the constant column. I’m trying to do this basically cause I have word wmbeddings in the B column and some weights in the A column. And my final purpose to get weighted embeddings.