Search
⌘K

Leetcode 2889. Reshape Data: Pivot

Pivot the weather table so each row is a month and each distinct city becomes its own column containing that city's temperature for that month. In other words, group by month and transpose city values into separate columns mapped to their temperatures.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.