Filter dataframe by value NOT present in column of other dataframe [duplicate]
问题 This question already has answers here : Filter Spark DataFrame based on another DataFrame that specifies blacklist criteria (2 answers) Closed 3 years ago . Banging my head a little with this one, and I suspect the answer is very simple. Given two dataframes, I want to filter the first where values in one column are not present in a column of another dataframe. I would like to do this without resorting to full-blown Spark SQL, so just using DataFrame.filter, or Column.contains or the "isin"