def test_in(x):
    return x == ['list', 'of', 'stuff']
from pyspark.sql.functions import udf
f = udf(test_in, pyspark.sql.types.BooleanType())
filtered_df = df.where(f(df.a))
Filter by whether column value equals a list in spark