What does the DataFrame.filter() method do, and how is it different from boolean filtering?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain what the pandas DataFrame.filter() method selects and how it differs from boolean mask filtering. Tests knowledge of the items, like, regex and axis parameters, label versus value selection, and edge cases such as missing labels and unanchored patterns.