What does .isin() do in pandas and when would you use it?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what the pandas .isin() method returns and when to use it to filter rows by a set of values. Tests knowledge of boolean masks, exclusion with ~, semi-joins, the dict form on DataFrames, and edge cases with dtypes and missing values.