How do you perform an anti-join in Pandas?
Instruction: Explain the concept of an anti-join and demonstrate how to implement it using Pandas.
Context: This question assesses the candidate's knowledge of joining techniques, specifically focusing on anti-joins for filtering data not present in another DataFrame.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
An anti-join returns left rows whose keys have no match on the right. Match existence, not a nullable payload column, determines whether a row is unmatched.
Pandas 3.0 adds how="left_anti"...