11. Reshape and Wide/Long Data
Chala mitrano, aaj aapan melt aani pivot_table shikuya — festival month grids wide-to-long. Reporting sathi shape badalne daily aahe. Ekdum sope vatel.
What you will learn in this chapter
- Long vs wide layout and when each helps
- melt to go wide → long
- pivot_table to summarise long → wide
- stack / unstack basics
Fictional data
Blinkit / Amazon Now figures in this chapter are fictional sample data for learning only. They do not show real company numbers.
Concepts in this chapter
- 11.1Wide vs Long
- 11.2melt — Wide to Long
- 11.3pivot_table — Long to Wide / Summary
- 11.4stack / unstack (Brief)
The chapter recap is at the end of the last concept page.