How does groupby() handle NaN values in the grouping keys?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how pandas groupby treats rows whose grouping key is NaN, both by default and with dropna=False, including the case of several keys. It tests awareness of silent row loss in grouped counts and sums and the ways to keep missing keys visible.