pandas · Lesson 7.2 · Pro
melt
Turn a wide table with one column per day into a long table with one row per value.
In this lesson
- Wide tables are hard to group
- melt: columns become rows
- Clean the new column
- Long data answers more questions
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.