Explain pivoting (rows to columns) and unpivoting (columns to rows) with a use case for each
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: A data manipulation question asking you to explain pivoting (rows to columns) and unpivoting (columns to rows) and give a practical use for each. It tests whether you understand long and wide data shapes and when each one suits reporting or analysis work.