I'm using spark SQL and have a data frame with user IDs & reviews of products. I need to filter stop words from the reviews, and I have a text file with stop words to filter.
I managed to split the reviews to lists of strings, but don't know how to filter.
this is what I tried to do:
from pyspark.sql.functions import col
stopWords = spark.read.text('/FileStore/tables/english.txt')
df.select(split(col("reviewText")," "))
df.filter(col("reviewText") == stopWords)
thanks!