Explain it in 60 seconds
Reshaping data with melt and pivot
Data Analyst · Python and Pandas · Intermediate
How do melt and pivot help reshape data between wide and long formats?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Wide: one column per variable/period.
- Long: one row per observation.
- melt: wide → long.
- pivot/pivot_table: long → wide.
- Long format suits groupby and plotting.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.