title: Multiplying two columns in a pyspark dataframe. One of them contains a vector and one of them contains a constant
body: <p>I have a pyspark dataframe which has one Column with vector values and one column with constant numerical values. Say for example </p>
  
  <pre><code>A | B
  1 | [2,4,5]
  5 | [6,5,3] 
  </code></pre>
  
  <p>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. </p>