I have two dataframes. I want to delete some records in Data Frame-A based on some common column values in Data Frame-B.
For Example: Data Frame-A:
You are looking for left anti-join:
left anti-join
df_a.join(df_b, Seq("A","B","C"), "leftanti").show() +---+---+---+---+ | A| B| C| D| +---+---+---+---+ | 3| 4| 5| 7| | 4| 7| 9| 6| +---+---+---+---+