Removing stop words from a Spark Dataframe
In case it helps anybody, I needed to do the following to fix my code:


add import org.apache.spark.sql.DataFrame
Make sure my DataFrame's were capitalized correctly.
add dfNoStop at the end of the function, to stop it returning unit.
make the call val Array(dfNoStop, dfNoStop1)=Array(dfHive, dfHive1).map(RemoveStopwords)