Answers for "pyspark filter column in list"

0

pyspark filter column in list

# define a list of scores
l = [10,18,20]

# filter out records by scores by list l
records = df.filter(~df.score.isin(l))
Posted by: Guest on July-05-2021

Browse Popular Code Answers by Language