What does pandas melt() do, and when would you reshape wide data to long?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what pandas melt() does and when you would reshape a DataFrame from wide to long format. Tests understanding of id_vars and value_vars, tidy data for plotting and grouping, reversing the reshape with pivot, and common mistakes such as losing an identifier column.