Take the melted frame and .pivot() it back to wide, with city down the side and…

pandas · from Wide and long form

.melt().pivot()id_varsvalue_varsvar_nametidy data

Putting the kettle on…

Starting up…

Exercise 3

Take the melted frame and .pivot() it back to wide, with city down the side and day across the top.

your answer
stuck? the lesson behind it
Wide and long form
Compute in long form, present in wide. Most awkward pandas is a shape problem.