How do you typically handle missing values or NULLs during the pivoting and unpivoting processes?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to treat NULL or missing values when pivoting data from long to wide format and when unpivoting it back. It tests where empty cells come from, how fill choices change aggregates, and how unpivot handles NULLs in different SQL dialects and in pandas.