Delete row(s) of a dataframe based on dates in a vector

I have a dataframe where one of the columns contain many dates. In a vector, I have a few dates. How do I remove those rows of my dataframe where rows contain dates that are found in my vector?

1 Like

filter(:dates => ∉(datesvector), df)

1 Like

You could use the antijoin () function, defining a dataframe with the vector of dates to exclude.

1 Like