title: Dot Products of Rows of a Dataframe with a Fixed Vector in Spark
body: <p>I have a dataframe (df1) with m rows and n columns in Spark. I have another dataframe (df2) with 1 row and n columns. How can I efficiently compute the dot product of each row of df1 with the single row of df2?</p>