DataFrame isin operation

or in.(df.Column1, Ref(Set(keep))) if keep and :Column1 are long and performance matters.

However, as @pdeffebach commented innerjoin is optimized to do such operations efficiently (e.g. if your data would be sorted it would take advantage of this fact and such thing is ignored by in).

1 Like