Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
 
PREVIOUS NEXT
Tagged: #pyspark #filter #column #list
ADD COMMENT
Topic
Name
1+8 =