df = sc.parallelize([(1, ['list', 'of', 'stuff']), (2, ['foo', 'bar']), (3,
    ['foobar']), (4, ['list', 'of', 'stuff', 'and', 'foo']), (5, ['a',
    'list', 'of', 'stuff'])]).toDF(['id', 'a'])
Filter by whether column value equals a list in spark